Skip to content

Commit 56ea76a

Browse files
authored
DOC: Promote Arrow C Data Interface over Interchange Protocol (#59347)
1 parent f4c454a commit 56ea76a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

pandas/core/frame.py

+5
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,11 @@ def __dataframe__(
901901
"""
902902
Return the dataframe interchange object implementing the interchange protocol.
903903
904+
.. note::
905+
906+
For new development, we highly recommend using the Arrow C Data Interface
907+
alongside the Arrow PyCapsule Interface instead of the interchange protocol
908+
904909
.. warning::
905910
906911
Due to severe implementation issues, we recommend only considering using the

pandas/core/interchange/from_dataframe.py

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ def from_dataframe(df, allow_copy: bool = True) -> pd.DataFrame:
3636
"""
3737
Build a ``pd.DataFrame`` from any DataFrame supporting the interchange protocol.
3838
39+
.. note::
40+
41+
For new development, we highly recommend using the Arrow C Data Interface
42+
alongside the Arrow PyCapsule Interface instead of the interchange protocol
43+
3944
.. warning::
4045
4146
Due to severe implementation issues, we recommend only considering using the

0 commit comments

Comments
 (0)