Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-35235: [CI][Python] Pandas upstream_devel and nightlies are failing #35248

Merged
merged 3 commits into from
Apr 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/pyarrow/table.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ cdef class ChunkedArray(_PandasConvertible):
# pandas ExtensionDtype that implements conversion from pyarrow
if hasattr(pandas_dtype, '__from_arrow__'):
arr = pandas_dtype.__from_arrow__(self)
return pandas_api.series(arr)
return pandas_api.series(arr, name=self._name)
AlenkaF marked this conversation as resolved.
Show resolved Hide resolved

return _array_like_to_pandas(self, options, types_mapper=types_mapper)

Expand Down
7 changes: 7 additions & 0 deletions python/pyarrow/tests/test_pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -1438,6 +1438,13 @@ def test_timestamp_to_pandas_ns(self):
def test_timestamp_to_pandas_out_of_bounds(self):
# ARROW-7758 check for out of bounds timestamps for non-ns timestamps

if Version(pd.__version__) >= Version("2.1.0.dev"):
# GH-35235: test fail due to __from_pyarrow__ being added to pandas
# https://github.com/pandas-dev/pandas/pull/52201
# Needs: https://github.com/apache/arrow/issues/33321
pytest.skip(
"Need support converting to non-nano datetime64 for pandas >= 2.0")

for unit in ['s', 'ms', 'us']:
for tz in [None, 'America/New_York']:
arr = pa.array([datetime(1, 1, 1)], pa.timestamp(unit, tz=tz))
Expand Down