Pandas MultiIndex Selection
Given a DataFrame with MultiIndex (state, city), how do you select all rows for California?
df.index.names = ['state', 'city']
Sign in to answer questions and track your progress
Sign InGiven a DataFrame with MultiIndex (state, city), how do you select all rows for California?
df.index.names = ['state', 'city']
Sign in to answer questions and track your progress
Sign In