Skip to content

Commit 90ff23a

Browse files
committed
fix dataframe tests
1 parent 73dce26 commit 90ff23a

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tests/system/small/test_dataframe.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5915,12 +5915,6 @@ def test_dataframe_explode_xfail(col_names):
59155915
pytest.param("datetime_col", "5M", "epoch"),
59165916
pytest.param("datetime_col", "3Q", "start_day"),
59175917
pytest.param("datetime_col", "3YE", "start"),
5918-
pytest.param(
5919-
"int64_col", "100D", "start", marks=pytest.mark.xfail(raises=TypeError)
5920-
),
5921-
pytest.param(
5922-
"datetime_col", "100D", "end", marks=pytest.mark.xfail(raises=ValueError)
5923-
),
59245918
],
59255919
)
59265920
def test_resample_with_column(
@@ -5929,7 +5923,7 @@ def test_resample_with_column(
59295923
# TODO: supply a reason why this isn't compatible with pandas 1.x
59305924
pytest.importorskip("pandas", minversion="2.0.0")
59315925
bf_result = (
5932-
scalars_df_index._resample(rule=rule, on=on, origin=origin)[
5926+
scalars_df_index.resample(rule=rule, on=on, origin=origin)[
59335927
["int64_col", "int64_too"]
59345928
]
59355929
.max()
@@ -6042,7 +6036,7 @@ def test_resample_start_time(rule, origin, data):
60426036
scalars_pandas_df_index = pd.DataFrame(data).set_index(col)
60436037
scalars_pandas_df_index.index.name = None
60446038

6045-
bf_result = scalars_df_index._resample(rule=rule, origin=origin).min().to_pandas()
6039+
bf_result = scalars_df_index.resample(rule=rule, origin=origin).min().to_pandas()
60466040

60476041
pd_result = scalars_pandas_df_index.resample(rule=rule, origin=origin).min()
60486042

0 commit comments

Comments
 (0)