batterseapower opened a new issue, #39093:
URL: https://github.com/apache/arrow/issues/39093

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   `pandas_compat.py' calls `pd.is_sparse` 
(https://github.com/apache/arrow/blob/1cc1f4c752895301371ee59d315ebffe74224c66/python/pyarrow/pandas_compat.py#L374).
 With Pandas 2.1, this API is deprecated, so any attempt to e.g. use 
`DataFrame.to_parquet` prints this warning:
   
   ```
   pyarrow/pandas_compat.py:373: FutureWarning: is_sparse is deprecated and 
will be removed in a future version. Check `isinstance(dtype, pd.SparseDtype)` 
instead.
   ```
   
   A similar bug was flagged in #35329 but the corresponding PR #35366 only 
removed one use of the function. `pandas_compat.py` is still an issue.
   
   (Link to the pandas issue: https://github.com/pandas-dev/pandas/issues/52899 
where this is also being discussed.)
   
   ### Component(s)
   
   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]

Reply via email to