Skip to content

Commit

Permalink
some more cases
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <[email protected]>
  • Loading branch information
anmyachev committed Aug 6, 2023
1 parent 05bfc84 commit 9b2dbe2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions modin/experimental/pandas/test/test_io_exp.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ def test_read_single_csv_with_parse_dates(self, parse_dates):
modin_df = pd.read_csv_glob(
time_parsing_csv_path, parse_dates=parse_dates
)
# Call __repr__ on the modin df to force it to materialize.
repr(modin_df)
# Call _to_pandas on the modin df to force it to materialize.
_ = modin_df._to_pandas()
assert isinstance(
modin_exception.value, type(pandas_exception)
), "Got Modin Exception type {}, but pandas Exception type {} was expected".format(
Expand Down
2 changes: 1 addition & 1 deletion modin/experimental/xgboost/test/test_dmatrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def test_feature_names():
with pytest.raises(ValueError):
booster.predict(dm)
with pytest.raises(ValueError):
repr(md_booster.predict(md_dm))
_ = md_booster.predict(md_dm)._to_pandas()


def test_feature_weights():
Expand Down
6 changes: 3 additions & 3 deletions modin/test/storage_formats/pandas/test_internals.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def test_aligning_blocks():
accm["T"] = pd.Series(["24.67\n"] * 145)

# see #2322 for details
repr(accm)
_ = accm._to_pandas()


def test_aligning_blocks_with_duplicated_index():
Expand All @@ -169,7 +169,7 @@ def test_aligning_blocks_with_duplicated_index():
df1 = pd.concat((pd.DataFrame(data11), pd.DataFrame(data12)))
df2 = pd.concat((pd.DataFrame(data21), pd.DataFrame(data22)))

repr(df1 - df2)
_ = (df1 - df2)._to_pandas()


def test_aligning_partitions():
Expand All @@ -180,7 +180,7 @@ def test_aligning_partitions():
modin_df2 = pd.concat((modin_df, modin_df))

modin_df2["c"] = modin_df1["b"]
repr(modin_df2)
_ = modin_df2._to_pandas()


@pytest.mark.parametrize("row_labels", [None, [("a", "")], ["a"]])
Expand Down

0 comments on commit 9b2dbe2

Please sign in to comment.