@@ -66,7 +66,7 @@ def concat(dataframes: Sequence[DataFrame]) -> DataFrame:
66
66
"""
67
67
...
68
68
69
- def column_from_sequence (sequence : Sequence [Any ], * , dtype : DType , name : str = '' , api_version : str | None = None ) -> Column :
69
+ def column_from_sequence (sequence : Sequence [Any ], * , dtype : DType , name : str = '' ) -> Column :
70
70
"""
71
71
Construct Column from sequence of elements.
72
72
@@ -80,21 +80,14 @@ def column_from_sequence(sequence: Sequence[Any], *, dtype: DType, name: str = '
80
80
Name of column.
81
81
dtype : DType
82
82
Dtype of result. Must be specified.
83
- api_version: str | None
84
- A string representing the version of the dataframe API specification
85
- in ``'YYYY.MM'`` form, for example, ``'2023.04'``.
86
- If it is ``None``, it should return an object corresponding to
87
- latest version of the dataframe API specification. If the given
88
- version is invalid or not implemented for the given module, an
89
- error should be raised. Default: ``None``.
90
83
91
84
Returns
92
85
-------
93
86
Column
94
87
"""
95
88
...
96
89
97
- def dataframe_from_dict (data : Mapping [str , Column ], * , api_version : str | None = None ) -> DataFrame :
90
+ def dataframe_from_dict (data : Mapping [str , Column ]) -> DataFrame :
98
91
"""
99
92
Construct DataFrame from map of column names to Columns.
100
93
@@ -104,13 +97,6 @@ def dataframe_from_dict(data: Mapping[str, Column], *, api_version: str | None =
104
97
Column must be of the corresponding type of the DataFrame.
105
98
For example, it is only supported to build a ``LibraryXDataFrame`` using
106
99
``LibraryXColumn`` instances.
107
- api_version: str | None
108
- A string representing the version of the dataframe API specification
109
- in ``'YYYY.MM'`` form, for example, ``'2023.04'``.
110
- If it is ``None``, it should return an object corresponding to
111
- latest version of the dataframe API specification. If the given
112
- version is invalid or not implemented for the given module, an
113
- error should be raised. Default: ``None``.
114
100
115
101
Returns
116
102
-------
@@ -126,7 +112,7 @@ def dataframe_from_dict(data: Mapping[str, Column], *, api_version: str | None =
126
112
...
127
113
128
114
129
- def column_from_1d_array (array : Any , * , dtype : DType , name : str = '' , api_version : str | None = None ) -> Column :
115
+ def column_from_1d_array (array : Any , * , dtype : DType , name : str = '' ) -> Column :
130
116
"""
131
117
Construct Column from 1D array.
132
118
@@ -144,21 +130,14 @@ def column_from_1d_array(array: Any, *, dtype: DType, name: str = '', api_versio
144
130
Name to give columns.
145
131
dtype : DType
146
132
Dtype of column.
147
- api_version: str | None
148
- A string representing the version of the dataframe API specification
149
- in ``'YYYY.MM'`` form, for example, ``'2023.04'``.
150
- If it is ``None``, it should return an object corresponding to
151
- latest version of the dataframe API specification. If the given
152
- version is invalid or not implemented for the given module, an
153
- error should be raised. Default: ``None``.
154
133
155
134
Returns
156
135
-------
157
136
Column
158
137
"""
159
138
...
160
139
161
- def dataframe_from_2d_array (array : Any , * , names : Sequence [str ], dtypes : Mapping [str , Any ], api_version : str | None = None ) -> DataFrame :
140
+ def dataframe_from_2d_array (array : Any , * , names : Sequence [str ], dtypes : Mapping [str , Any ]) -> DataFrame :
162
141
"""
163
142
Construct DataFrame from 2D array.
164
143
@@ -176,13 +155,6 @@ def dataframe_from_2d_array(array: Any, *, names: Sequence[str], dtypes: Mapping
176
155
Names to give columns. Must be the same length as ``array.shape[1]``.
177
156
dtypes : Mapping[str, DType]
178
157
Dtype of each column. Must be the same length as ``array.shape[1]``.
179
- api_version: str | None
180
- A string representing the version of the dataframe API specification
181
- in ``'YYYY.MM'`` form, for example, ``'2023.04'``.
182
- If it is ``None``, it should return an object corresponding to
183
- latest version of the dataframe API specification. If the given
184
- version is invalid or not implemented for the given module, an
185
- error should be raised. Default: ``None``.
186
158
187
159
Returns
188
160
-------
0 commit comments