Skip to content

Fix DatetimeAccessor.strftime errors due to upstream changes #10550

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

spencerkclark
Copy link
Member

This PR addresses the following upstream build errors (#10548) by explicitly converting the intermediate strftime results to NumPy arrays before reshaping.

FAILED test_accessor_dt.py::TestDatetimeAccessor::test_strftime - NotImplementedError: <class 'pandas.core.arrays.string_arrow.ArrowStringArrayNumpySemantics'> does not support reshape as backed by a 1D pyarrow.ChunkedArray.
FAILED test_accessor_dt.py::TestDatetimeAccessor::test_dask_accessor_method[strftime-%Y-%m-%d %H:%M:%S] - NotImplementedError: <class 'pandas.core.arrays.string_arrow.ArrowStringArrayNumpySemantics'> does not support reshape as backed by a 1D pyarrow.ChunkedArray.
FAILED test_accessor_dt.py::test_cftime_strftime_access[360_day] - NotImplementedError: <class 'pandas.core.arrays.string_arrow.ArrowStringArrayNumpySemantics'> does not support reshape as backed by a 1D pyarrow.ChunkedArray.
FAILED test_accessor_dt.py::test_cftime_strftime_access[365_day] - NotImplementedError: <class 'pandas.core.arrays.string_arrow.ArrowStringArrayNumpySemantics'> does not support reshape as backed by a 1D pyarrow.ChunkedArray.
FAILED test_accessor_dt.py::test_cftime_strftime_access[366_day] - NotImplementedError: <class 'pandas.core.arrays.string_arrow.ArrowStringArrayNumpySemantics'> does not support reshape as backed by a 1D pyarrow.ChunkedArray.
FAILED test_accessor_dt.py::test_cftime_strftime_access[all_leap] - NotImplementedError: <class 'pandas.core.arrays.string_arrow.ArrowStringArrayNumpySemantics'> does not support reshape as backed by a 1D pyarrow.ChunkedArray.
FAILED test_accessor_dt.py::test_cftime_strftime_access[gregorian] - NotImplementedError: <class 'pandas.core.arrays.string_arrow.ArrowStringArrayNumpySemantics'> does not support reshape as backed by a 1D pyarrow.ChunkedArray.
FAILED test_accessor_dt.py::test_cftime_strftime_access[julian] - NotImplementedError: <class 'pandas.core.arrays.string_arrow.ArrowStringArrayNumpySemantics'> does not support reshape as backed by a 1D pyarrow.ChunkedArray.
FAILED test_accessor_dt.py::test_cftime_strftime_access[noleap] - NotImplementedError: <class 'pandas.core.arrays.string_arrow.ArrowStringArrayNumpySemantics'> does not support reshape as backed by a 1D pyarrow.ChunkedArray.
FAILED test_accessor_dt.py::test_cftime_strftime_access[proleptic_gregorian] - NotImplementedError: <class 'pandas.core.arrays.string_arrow.ArrowStringArrayNumpySemantics'> does not support reshape as backed by a 1D pyarrow.ChunkedArray.
FAILED test_accessor_dt.py::test_cftime_strftime_access[standard] - NotImplementedError: <class 'pandas.core.arrays.string_arrow.ArrowStringArrayNumpySemantics'> does not support reshape as backed by a 1D pyarrow.ChunkedArray.

@spencerkclark spencerkclark added the run-upstream Run upstream CI label Jul 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-upstream Run upstream CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant