Skip to content

Commit

Permalink
DOC: Promote Arrow C Data Interface over Interchange Protocol (#59347)
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd authored Jul 29, 2024
1 parent f4c454a commit 56ea76a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,11 @@ def __dataframe__(
"""
Return the dataframe interchange object implementing the interchange protocol.
.. note::
For new development, we highly recommend using the Arrow C Data Interface
alongside the Arrow PyCapsule Interface instead of the interchange protocol
.. warning::
Due to severe implementation issues, we recommend only considering using the
Expand Down
5 changes: 5 additions & 0 deletions pandas/core/interchange/from_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ def from_dataframe(df, allow_copy: bool = True) -> pd.DataFrame:
"""
Build a ``pd.DataFrame`` from any DataFrame supporting the interchange protocol.
.. note::
For new development, we highly recommend using the Arrow C Data Interface
alongside the Arrow PyCapsule Interface instead of the interchange protocol
.. warning::
Due to severe implementation issues, we recommend only considering using the
Expand Down

0 comments on commit 56ea76a

Please sign in to comment.