rhshadrach opened a new issue, #48023:
URL: https://github.com/apache/arrow/issues/48023
### Describe the bug, including details regarding any error messages,
version, and platform.
```python
import pandas as pd
# Ensure `ArrowPeriodType` is registered
import pandas.core.arrays.arrow.extension_types
df = pd.DataFrame(
{
"month": pd.period_range("2024-01", "2024-12", freq="M"),
"data": range(12),
}
)
df.to_parquet("test.parquet", engine="pyarrow")
pd.read_parquet(
"test.parquet",
engine="pyarrow",
filters=[("month", ">=", pd.Period("2024-07", freq="M"))]
)
# Could not convert Period('2024-07', 'M') with type Period: did not
# recognize Python value type when inferring an Arrow data type
```
A similar example using `pd.Timestamp` succeeds. It's not clear to me if
something on the pandas side needs to be done here.
Original pandas report: https://github.com/pandas-dev/pandas/issues/62769
### Component(s)
Parquet, Python
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]