Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
There is this behaviour of to_pandas_dtype returning float, while all actual conversions to numpy or pandas use object dtype:
In [23]: pa.null().to_pandas_dtype() Out[23]: numpy.float64 In [24]: pa.array([], pa.null()).to_pandas() Out[24]: Series([], dtype: object) In [25]: pa.array([], pa.null()).to_numpy(zero_copy_only=False) Out[25]: array([], dtype=object)
So we should probably fix NullType.to_pandas_dtype to return object, which is used in practice.
Attachments
Issue Links
- links to