Skip to content

Commit b0dc3f7

Browse files
committed
Add a whatsnew entry
Signed-off-by: Vasily Litvinov <vasilij.n.litvinov@intel.com>
1 parent 3e0ffc3 commit b0dc3f7

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

doc/source/reference/frame.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,3 +391,4 @@ Serialization / IO / conversion
391391
DataFrame.to_clipboard
392392
DataFrame.to_markdown
393393
DataFrame.style
394+
DataFrame.__dataframe__

doc/source/reference/general_functions.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,10 @@ Hashing
7878

7979
util.hash_array
8080
util.hash_pandas_object
81+
82+
Importing from other dataframe libraries
83+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
84+
.. autosummary::
85+
:toctree: api/
86+
87+
api.exchange.from_dataframe

doc/source/whatsnew/v1.5.0.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,24 @@ including other versions of pandas.
1414
Enhancements
1515
~~~~~~~~~~~~
1616

17+
.. _whatsnew_150.enhancements.dataframe_exchange:
18+
19+
DataFrame exchange protocol implementation
20+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21+
22+
Pandas now implement the DataFrame exchange API spec.
23+
See the full details on the API at https://data-apis.org/dataframe-protocol/latest/index.html
24+
25+
The protocol consists of two parts:
26+
27+
- New method :meth:`DataFrame.__dataframe__` which produces the exchange object.
28+
It effectively "exports" the Pandas dataframe as an exchange object so
29+
any other library which has the protocol implemented can "import" that dataframe
30+
without knowing anything about the producer except that it makes an exchange object.
31+
- New function :func:`pandas.api.exchange.from_dataframe` which can take
32+
an arbitrary exchange object from any conformant library and construct a
33+
Pandas DataFrame out of it.
34+
1735
.. _whatsnew_150.enhancements.styler:
1836

1937
Styler

0 commit comments

Comments
 (0)