We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15c2a3b commit 35667adCopy full SHA for 35667ad
1 file changed
python/pyarrow/tests/test_pandas.py
@@ -638,8 +638,8 @@ def test_table_column_subset_metadata(self):
638
table_subset = table.remove_column(1)
639
result = table_subset.to_pandas()
640
expected = df[['a']]
641
- if isinstance(df.index, pd.DatetimeIndex):
642
- df.index.freq = None
+ if isinstance(expected.index, pd.DatetimeIndex):
+ expected.index.freq = None
643
tm.assert_frame_equal(result, expected)
644
645
table_subset2 = table_subset.remove_column(1)
0 commit comments