Repository navigation
Closed
Closed
Copy link
Description
Describe the bug, including details regarding any error messages, version, and platform.
As also reported by @h-vetinari on #48961 - in conda-forge, failures for arrow v23 (& v22) with pandas v3.
I replicated the same with platform darwin, Python 3.13.9, pandas 3.0.0
A) requires fastparquet to run the test;
pytest -r s --pyargs pyarrow/tests/parquet/test_basic.py
pyarrow/tests/parquet/test_basic.py::test_fastparquet_cross_compatibility FAILED [ 67%]
...
fp_file = fp.ParquetFile(file_arrow)
df_fp = fp_file.to_pandas()
> tm.assert_frame_equal(df, df_fp)
E AssertionError: Attributes of DataFrame.iloc[:, 0] (column name="a") are different
E
E Attribute "dtype" are different
E [left]: <StringDtype(na_value=nan)>
E [right]: object
pyarrow/tests/parquet/test_basic.py:754: AssertionErrorB) To replicate the following I had to uninstall pytz first ( pip uninstall pytz ) so Python's native zoneinfo is utilized;
pytest -r s --pyargs pyarrow/tests/test_pandas.py::test_timestamp_as_object_non_nanosecond
pyarrow/tests/test_pandas.py::test_timestamp_as_object_non_nanosecond[dt0-America/New_York-s] FAILED [ 33%]
pyarrow/tests/test_pandas.py::test_timestamp_as_object_non_nanosecond[dt0-America/New_York-ms] FAILED [ 41%]
pyarrow/tests/test_pandas.py::test_timestamp_as_object_non_nanosecond[dt0-America/New_York-us] FAILED [ 50%]
... PASSED ...
pyarrow/tests/test_pandas.py::test_timestamp_as_object_non_nanosecond[dt1-America/New_York-s] FAILED [ 83%]
pyarrow/tests/test_pandas.py::test_timestamp_as_object_non_nanosecond[dt1-America/New_York-ms] FAILED [ 91%]
pyarrow/tests/test_pandas.py::test_timestamp_as_object_non_nanosecond[dt1-America/New_York-us] FAILED [100%]resolution = 's', tz = 'America/New_York', dt = datetime.datetime(1553, 1, 1, 0, 0)
...
if tz:
assert result[0].tzinfo is not None
> expected = result[0].tzinfo.fromutc(dt)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ValueError: fromutc: dt.tzinfo is not self
pyarrow/tests/test_pandas.py:4959: ValueErrorCI does not show these failures yet, even for the CI job "AMD64 Conda Python 3.13 Pandas latest" logs from related PR still list pandas 2.3.3 ;
PANDAS: latest
...
#5 importing cache manifest from apache/arrow-dev:amd64-conda-python-3.13-pandas-latest
...
pandas 2.3.3 pypi_0 pypiComponent(s)
Continuous Integration, Python
Activity
jorisvandenbossche commentedon Jan 30, 2026
For the fastparquet part, AFAIK fastparquet does not yet fully support pandas 3.0, and so that is the reason it produces an object dtype column for the original string column, not giving a perfect roundtrip
[-][Python] test failures on pandas 3.0 (currently CI on 2.3.3)[/-][+][Python] test failures on pandas 3.0 for fastparquet and zoneinfo w/o pytz[/+][-][Python] test failures on pandas 3.0 for fastparquet and zoneinfo w/o pytz[/-][+][Python] test failures on pandas 3.0 for fastparquet and for zoneinfo w/o pytz[/+]GH-48978: [Python] test failures on pandas 3.0 for fastparquet and fo…
rok commentedon Feb 20, 2026
Issue resolved by pull request 48979
#48979
apacheGH-48978: [Python] test failures on pandas 3.0 for fastparquet …
apacheGH-48978: [Python] test failures on pandas 3.0 for fastparquet …