Pandas 报错AttributeError: 'Index' object has no attribute 'remove_unused_levels'
执行代码,将Series转换成DataFrame时:s1=pd.Series(np.random.rand(5),index=['a','s','d','f','g'])print(s1.unstack())报错部分情况如下:File"D:\python\lib\site-packages\pandas\core\series.py",line2899,inunstackreturnunstack