How to solve type object 'Series' has no attribute '_get_dtypes' error using modin.pandas?
How to solve type object 'Series' has no attribute '_get_dtypes' error using modin.pandas?
我正在使用 modin.pandas 从数据框中删除重复项。
import modin.pandas as pd
import json, ast
df = pd.DataFrame(columns=['contact_id', 'test_id'])
df['test_id'] = df['test_id'].astype(str) # Coverting test_id column data type to string
df = df.drop_duplicates(subset=['test_id', 'contact_id'], keep='first') #removing the dupplicates row
df['test_id'] = df['test_id'].apply(ast.literal_eval) # converting test_id column data type to dict
低于错误
type object 'Series' has no attribute '_get_dtypes'
谁能指导我如何解决这个问题?
看来您正在使用的 Modin 版本已经足够旧了。我没有关于最新主人的问题。请尝试从源安装 Modin:
pip uninstall modin # remove current Modin at first
pip install git+https://github.com/modin-project/modin
对了,Modin最近发布了0.9.0版本。你也可以试试安装。
pip uninstall modin # remove current Modin at first
pip install modin
我正在使用 modin.pandas 从数据框中删除重复项。
import modin.pandas as pd
import json, ast
df = pd.DataFrame(columns=['contact_id', 'test_id'])
df['test_id'] = df['test_id'].astype(str) # Coverting test_id column data type to string
df = df.drop_duplicates(subset=['test_id', 'contact_id'], keep='first') #removing the dupplicates row
df['test_id'] = df['test_id'].apply(ast.literal_eval) # converting test_id column data type to dict
低于错误
type object 'Series' has no attribute '_get_dtypes'
谁能指导我如何解决这个问题?
看来您正在使用的 Modin 版本已经足够旧了。我没有关于最新主人的问题。请尝试从源安装 Modin:
pip uninstall modin # remove current Modin at first
pip install git+https://github.com/modin-project/modin
对了,Modin最近发布了0.9.0版本。你也可以试试安装。
pip uninstall modin # remove current Modin at first
pip install modin