human
How to filter by sub-level index in Pandas
assistant
Here is some code to filter dataframe `df` by sub-level index '0630' in pandas

df[df.index.map(lambda x: x[1].endswith('0630'))]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.