How to Filter DataFrame Rows Based on the time in Pandas? code example Example: filter rows pandas newdf = df[(df.origin == "JFK") & (df.carrier == "B6")]