Skip to content

[CI][Python] Pandas nightly tests failing due to DatetimeIndex missmatch #49920

Description

@AlenkaF

Describe the bug, including details regarding any error messages, version, and platform.

Nightly pandas jobs are failing due to AssertionError in pyarrow/tests/test_pandas.py:

deftest_table_column_subset_metadata(self):
# ARROW-1883# non-default indexforindexin [
pd.Index(['a', 'b', 'c'], name='index'),
pd.date_range("2017-01-01", periods=3, tz='Europe/Brussels')]:
df=pd.DataFrame({'a': [1, 2, 3],
'b': [.1, .2, .3]}, index=index)
table=pa.Table.from_pandas(df)
table_subset=table.remove_column(1)
result=table_subset.to_pandas()
expected=df[['a']]
ifisinstance(df.index, pd.DatetimeIndex):
df.index.freq=None>tm.assert_frame_equal(result, expected)
EAssertionError: (None, <Day>)

See: https://github.com/ursacomputing/crossbow/actions/runs/25352255483/job/74334226712#step:6:4296

Component(s)

Continuous Integration, Python

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions