File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -391,3 +391,4 @@ Serialization / IO / conversion
391
391
DataFrame.to_clipboard
392
392
DataFrame.to_markdown
393
393
DataFrame.style
394
+ DataFrame.__dataframe__
Original file line number Diff line number Diff line change @@ -78,3 +78,10 @@ Hashing
78
78
79
79
util.hash_array
80
80
util.hash_pandas_object
81
+
82
+ Importing from other dataframe libraries
83
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
84
+ .. autosummary ::
85
+ :toctree: api/
86
+
87
+ api.exchange.from_dataframe
Original file line number Diff line number Diff line change @@ -14,6 +14,24 @@ including other versions of pandas.
14
14
Enhancements
15
15
~~~~~~~~~~~~
16
16
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
+
17
35
.. _whatsnew_150.enhancements.styler :
18
36
19
37
Styler
You can’t perform that action at this time.
0 commit comments