I have a multi-index dataframe that looks like this:
start grad
1995-96 1995-96 15 15
1996-97 6 6
2002-03 1 1
2007-08 1 1
I'd like to drop by the specific values for the first level (level=0). In this case, I'd like to drop everything that has 1995-96 in the first index.
df.select(lambda row: row[0] != '1995-96', axis=0)