错误类型:
'MultiIndex Slicing requires the index to be fully lexsorted tuple len (2), lexsort depth (0)'
df5.sort_index(inplace = True)
df5.loc[(slice(None),slice('Australia','USA')),:]
UnsortedIndexError: 'MultiIndex Slicing requires the index to be fully lexsorted tuple len (2), lexsort depth (0)'
这个地方到底哪里出错了?