From 875667a6af7ce4283c1347316f52e16b83ea8254 Mon Sep 17 00:00:00 2001 From: Will Ayd Date: Mon, 29 Jul 2024 13:41:28 -0400 Subject: [PATCH] DOC: Promote Arrow C Data Interface over Interchange Protocol --- pandas/core/frame.py | 5 +++++ pandas/core/interchange/from_dataframe.py | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b897e868ce134..ea91046f4b8e4 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -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 diff --git a/pandas/core/interchange/from_dataframe.py b/pandas/core/interchange/from_dataframe.py index 869ff43728860..7f2647d64b190 100644 --- a/pandas/core/interchange/from_dataframe.py +++ b/pandas/core/interchange/from_dataframe.py @@ -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