Wich是关于学生在某些课程中的表现,我想矢量化一些列的数据集,以避免使用所有的数据(只是为了了解它如何工作)。因此,我尝试了以下方法,使用from sklearn.feature_extraction import DictVectorizer
File "pandas/index.pyx", line 154, in p
我有一个dataframe (第一列是索引列)(下面)。我想添加(Create)一个(最后)列,它是索引列的副本(下面是期望的结果)。然而,我有错误(以下)。有解决办法吗?\pandas\_libs\index.pyx in pandas._libs.index.IndexEngine.get_loc()
~\anaconda3\lib\site-packages\pandas\_libs\index.pyx in pandas._libs.inde