TypeError: get_dummies() got an unexpected keyword argument 'drop_first'
TypeError: get_dummies() got an unexpected keyword argument 'drop_first'
这是我不明白的地方。当我 运行 这个:
dataframe['col_name'].str.get_dummies(sep='|', drop_first=True)
我得到:TypeError: get_dummies() got an unexpected keyword argument 'drop_first'
当我阅读 this...
时,这对我来说毫无意义
我一定是漏了什么。有人可以帮忙吗?
有2个get_dummies
:
你用的是第二个没有drop_first
这是我不明白的地方。当我 运行 这个:
dataframe['col_name'].str.get_dummies(sep='|', drop_first=True)
我得到:TypeError: get_dummies() got an unexpected keyword argument 'drop_first'
当我阅读 this...
我一定是漏了什么。有人可以帮忙吗?
有2个get_dummies
:
你用的是第二个没有drop_first