To retrieve all rows from a multi-indexed #Python #Pandas data frame or series, specifying the two outer layers, pass a tuple (not a list!): ( pd .read_parquet('nyc_taxi_2025-11.parquet') .groupby(['passenger_count', 'VendorID'])['total_amount'].mean() .loc[(1.0, 1)] )
0 reposts2 likes