将两个熊猫数据帧与modin.pandas合并会产生ValueError

将两个熊猫数据帧与modin.pandas合并会产生ValueError,pandas,dataframe,merge,modin,Pandas,Dataframe,Merge,Modin,为了让我的pandas代码更快,我安装了modin并尝试使用它。以前有效的两个数据帧的合并导致以下错误: ValueError: can not merge DataFrame with instance of type <class 'pandas.core.frame.DataFrame'> 以下是其他_df的3行: id other_id Value Unit a01 BE4F15A3AE

为了让我的pandas代码更快,我安装了modin并尝试使用它。以前有效的两个数据帧的合并导致以下错误:

ValueError: can not merge DataFrame with instance of type <class 'pandas.core.frame.DataFrame'>
以下是其他_df的3行:

id                             other_id           Value      Unit
a01  BE4F15A3AE8A508ACB45F0FC8CDC173D1628D283         3  some_string
a02  BE4F15A3AE8A508ACB45F0FC8CDC173D1628D283         3  some_string
a03  BE4F15A3AE8A508ACB45F0FC8CDC173D1628D283         3  some_string
我试着安装这个问题中引用的版本,但是没有用

下面是引发错误的代码行:

joint_dataframe2 = pd.merge(event_df,other_df, on = ["id","other_id"])

莫丁的合并功能似乎存在一些问题。是否有任何解决方法,例如使用pandas进行合并和使用modin进行groupby.transform()?我尝试在与import modin.pandas合并后覆盖pandas导入,但出现一个错误,称pandas在赋值之前被引用。是否有人遇到此问题,如果是,是否有解决方案?

您的错误看起来像是将
modin.pandas.dataframe.dataframe
的实例与
pandas.core.frame.dataframe
的实例合并,这是不允许的


如果确实是这样,你可以先将熊猫数据框转换成modin数据框,然后我相信你应该能够合并它们。

你能为每个数据框添加一些数据样本,2-3行数据吗?@jezrael我编辑了这个问题,包括数据框的信息和一些示例行。看起来不错,我不知道问题出在哪里。我在modin GitHub上发布了这个问题,看看是否有更多参与该项目的人有任何想法:
id                             other_id           Value      Unit
a01  BE4F15A3AE8A508ACB45F0FC8CDC173D1628D283         3  some_string
a02  BE4F15A3AE8A508ACB45F0FC8CDC173D1628D283         3  some_string
a03  BE4F15A3AE8A508ACB45F0FC8CDC173D1628D283         3  some_string
joint_dataframe2 = pd.merge(event_df,other_df, on = ["id","other_id"])