Skip to content

Commit 595b6a5

Browse files
fix drop command
1 parent 5f985cf commit 595b6a5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tests/system/small/test_dataframe.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4773,8 +4773,9 @@ def test_df_to_json_local_str(scalars_df_index, scalars_pandas_df_index):
47734773
def test_df_to_json_local_file(scalars_df_index, scalars_pandas_df_index):
47744774
# TODO: supply a reason why this isn't compatible with pandas 1.x
47754775
pytest.importorskip("pandas", minversion="2.0.0")
4776-
scalars_df_index = scalars_df_index.drop("duration_col")
4777-
scalars_pandas_df_index = scalars_pandas_df_index.drop("duration_col")
4776+
# duration not fully supported at pandas level
4777+
scalars_df_index = scalars_df_index.drop(columns="duration_col")
4778+
scalars_pandas_df_index = scalars_pandas_df_index.drop(columns="duration_col")
47784779
with tempfile.TemporaryFile() as bf_result_file, tempfile.TemporaryFile() as pd_result_file:
47794780
scalars_df_index.to_json(bf_result_file, orient="table")
47804781
# default_handler for arrow types that have no default conversion

tests/unit/test_dataframe_polars.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4088,8 +4088,8 @@ def test_df_to_json_local_file(scalars_df_index, scalars_pandas_df_index):
40884088
# TODO: supply a reason why this isn't compatible with pandas 1.x
40894089
pytest.importorskip("pandas", minversion="2.0.0")
40904090
# duration not fully supported at pandas level
4091-
scalars_df_index = scalars_df_index.drop("duration_col")
4092-
scalars_pandas_df_index = scalars_pandas_df_index.drop("duration_col")
4091+
scalars_df_index = scalars_df_index.drop(columns="duration_col")
4092+
scalars_pandas_df_index = scalars_pandas_df_index.drop(columns="duration_col")
40934093
with tempfile.TemporaryFile() as bf_result_file, tempfile.TemporaryFile() as pd_result_file:
40944094
scalars_df_index.to_json(bf_result_file, orient="table")
40954095
# default_handler for arrow types that have no default conversion

0 commit comments

Comments
 (0)