Skip to content

Commit

Permalink
FIX-modin-project#2322: add test
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <[email protected]>
  • Loading branch information
anmyachev committed Nov 6, 2020
1 parent 040766d commit 9abddec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modin/engines/base/frame/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1735,7 +1735,7 @@ def _copartition(self, axis, other, how, sort, force_repartition=False):
other[i]._partitions,
lambda df: df.reindex(joined_index, axis=axis),
lengths=self._row_lengths if axis == 0 else self._column_widths,
manual_partition=True,
manual_partition=False,
)
reindexed_other_list.append(reindexed_other)
return reindexed_self, reindexed_other_list, joined_index
Expand Down
10 changes: 10 additions & 0 deletions modin/pandas/test/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1897,6 +1897,16 @@ def test_to_gbq():
modin_df.to_gbq("modin.table")


def test_internal_error_2322():
accm = pd.DataFrame(["-22\n"] * 162)
accm = accm.iloc[2:, :]
accm.reset_index(drop=True, inplace=True)
accm["T"] = pd.Series(["24.67\n"] * 145)

# see #2322 for details
repr(accm)


def test_cleanup():
filenames = [
TEST_PARQUET_FILENAME,
Expand Down

0 comments on commit 9abddec

Please sign in to comment.