从另一个数据框追加行

时间:2019-02-17 15:37:42

标签: dask

我正在使用dask数据框

当我这样做

df = train_df.append(test_df)

它抛出

  File "/home/user/anaconda3/lib/python3.6/site-packages/dask/dataframe/core.py", line 2958, in append
    return super(DataFrame, self).append(other)
  File "/home/user/anaconda3/lib/python3.6/site-packages/dask/dataframe/core.py", line 1691, in append
    return concat([self, other], join='outer', interleave_partitions=False)
  File "/home/user/anaconda3/lib/python3.6/site-packages/dask/dataframe/multi.py", line 630, in concat
    raise ValueError('All inputs have known divisions which '
ValueError: All inputs have known divisions which cannot be concatenated in order. Specify interleave_partitions=True to ignore order

正确的做法是什么?我想将test_df中的行追加到具有相同列集的train_df中。

0 个答案:

没有答案