7
7
import numpy as np
8
8
9
9
import pandas as pd
10
- from pandas .core .exchange .dataframe_protocol import (
10
+ from pandas .core .interchange .dataframe_protocol import (
11
11
Buffer ,
12
12
Column ,
13
13
ColumnNullType ,
14
14
DataFrame as DataFrameXchg ,
15
15
DtypeKind ,
16
16
)
17
- from pandas .core .exchange .utils import (
17
+ from pandas .core .interchange .utils import (
18
18
ArrowCTypes ,
19
19
Endianness ,
20
20
)
@@ -34,7 +34,7 @@ def from_dataframe(df, allow_copy=True) -> pd.DataFrame:
34
34
Parameters
35
35
----------
36
36
df : DataFrameXchg
37
- Object supporting the exchange protocol, i.e. `__dataframe__` method.
37
+ Object supporting the interchange protocol, i.e. `__dataframe__` method.
38
38
allow_copy : bool, default: True
39
39
Whether to allow copying the memory to perform the conversion
40
40
(if false then zero-copy approach is requested).
@@ -54,12 +54,12 @@ def from_dataframe(df, allow_copy=True) -> pd.DataFrame:
54
54
55
55
def _from_dataframe (df : DataFrameXchg , allow_copy = True ):
56
56
"""
57
- Build a ``pd.DataFrame`` from the DataFrame exchange object.
57
+ Build a ``pd.DataFrame`` from the DataFrame interchange object.
58
58
59
59
Parameters
60
60
----------
61
61
df : DataFrameXchg
62
- Object supporting the exchange protocol, i.e. `__dataframe__` method.
62
+ Object supporting the interchange protocol, i.e. `__dataframe__` method.
63
63
allow_copy : bool, default: True
64
64
Whether to allow copying the memory to perform the conversion
65
65
(if false then zero-copy approach is requested).
@@ -91,7 +91,7 @@ def _from_dataframe(df: DataFrameXchg, allow_copy=True):
91
91
92
92
def protocol_df_chunk_to_pandas (df : DataFrameXchg ) -> pd .DataFrame :
93
93
"""
94
- Convert exchange protocol chunk to ``pd.DataFrame``.
94
+ Convert interchange protocol chunk to ``pd.DataFrame``.
95
95
96
96
Parameters
97
97
----------
0 commit comments