AttributeError: module 'pandas.core' has no attribute 'categorical'的解決

module ‘pandas.core’ has no attribute 'categorical’的解決 1、報錯代碼 2、代碼尋錯 發現pandas中沒有categorical包,猜測是否因爲pandas更新後沒有categorical包,考慮具有與原來categorical相類似功能的包,嘗試dtyples包,查看其dtyples模塊的代碼,果不其然(這種方法僅供參考,存在巧合)。 3、代
相關文章
相關標籤/搜索