You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "jorisvandenbossche (via GitHub)" <gi...@apache.org> on 2023/12/06 08:05:55 UTC

Re: [I] FutureWarning about is_sparse with Pandas>=2.1 [arrow]

jorisvandenbossche commented on issue #39093:
URL: https://github.com/apache/arrow/issues/39093#issuecomment-1842368012

   The `is_sparse` call in pandas_compat.py that you reference is actually a function that is defined in pyarrow itself:
   
   https://github.com/apache/arrow/blob/1cc1f4c752895301371ee59d315ebffe74224c66/python/pyarrow/pandas-shim.pxi#L204-L208
   
   and this is exactly the place that https://github.com/apache/arrow/pull/35366 has updated to no longer use pandas' `is_sparse` but `isinstance(.., pd.SparseDtype)` 
   
   If you are still seeing this warning, I _assume_ you are using an older version of pyarrow (<12). Would that be the case? 
   


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org