We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67ee16a commit 39777cbCopy full SHA for 39777cb
pandas/core/dtypes/base.py
@@ -63,6 +63,18 @@ class property**.
63
Added ``_metadata``, ``__hash__``, and changed the default definition
64
of ``__eq__``.
65
66
+ For interaction with Apache Arrow (pyarrow), a ``__from_arrow__`` method
67
+ can be implemented: this method receives a pyarrow Array or ChunkedArray
68
+ as only argument and is expected to return the appropriate pandas
69
+ ExtensionArray for this dtype and the passed values::
70
+
71
+ class ExtensionDtype:
72
73
+ def __from_arrow__(
74
+ self, array: pyarrow.Array/ChunkedArray
75
+ ) -> ExtensionArray:
76
+ ...
77
78
This class does not inherit from 'abc.ABCMeta' for performance reasons.
79
Methods and properties required by the interface raise
80
``pandas.errors.AbstractMethodError`` and no ``register`` method is
0 commit comments