我正在接收 KeyError: 'Requested level (var1) does not match index name (None)'
. ,在运行下面的代码。
pandas_profiling 版本 = 2.8.0
代码:
Profile = df_NYC.profile_report(title = "NYC Flight Data Profiling before Pre-processing")
错误信息:
~\anaconda3\lib\site-packages\pandas\core\indexes\base.py in _validate_index_level(self, level)
1414 elif level != self.name:
1415 raise KeyError(
-> 1416 f"Requested level ({level}) does not match index name ({self.name})"
1417 )
1418
KeyError: 'Requested level (var1) does not match index name (None)'
我不知道如何解决这个问题?任何人都可以帮忙吗?
提前谢谢你的帮助!