@@ -134,15 +134,13 @@ def bufsize(self) -> int:
134134 """
135135 Buffer size in bytes.
136136 """
137- pass
138137
139138 @property
140139 @abstractmethod
141140 def ptr (self ) -> int :
142141 """
143142 Pointer to start of the buffer as an integer.
144143 """
145- pass
146144
147145 @abstractmethod
148146 def __dlpack__ (self ):
@@ -166,7 +164,6 @@ def __dlpack_device__(self) -> tuple[DlpackDeviceType, int | None]:
166164 Uses device type codes matching DLPack.
167165 Note: must be implemented even if ``__dlpack__`` is not.
168166 """
169- pass
170167
171168
172169class Column (ABC ):
@@ -222,7 +219,6 @@ def size(self) -> int:
222219 Corresponds to DataFrame.num_rows() if column is a single chunk;
223220 equal to size of this current chunk otherwise.
224221 """
225- pass
226222
227223 @property
228224 @abstractmethod
@@ -234,7 +230,6 @@ def offset(self) -> int:
234230 equal size M (only the last chunk may be shorter),
235231 ``offset = n * M``, ``n = 0 .. N-1``.
236232 """
237- pass
238233
239234 @property
240235 @abstractmethod
@@ -266,7 +261,6 @@ def dtype(self) -> tuple[DtypeKind, int, str, str]:
266261 - Data types not included: complex, Arrow-style null, binary, decimal,
267262 and nested (list, struct, map, union) dtypes.
268263 """
269- pass
270264
271265 @property
272266 @abstractmethod
@@ -289,7 +283,6 @@ def describe_categorical(self) -> CategoricalDescription:
289283
290284 TBD: are there any other in-memory representations that are needed?
291285 """
292- pass
293286
294287 @property
295288 @abstractmethod
@@ -302,7 +295,6 @@ def describe_null(self) -> tuple[ColumnNullType, Any]:
302295 mask or a byte mask, the value (0 or 1) indicating a missing value. None
303296 otherwise.
304297 """
305- pass
306298
307299 @property
308300 @abstractmethod
@@ -312,22 +304,19 @@ def null_count(self) -> int | None:
312304
313305 Note: Arrow uses -1 to indicate "unknown", but None seems cleaner.
314306 """
315- pass
316307
317308 @property
318309 @abstractmethod
319310 def metadata (self ) -> dict [str , Any ]:
320311 """
321312 The metadata for the column. See `DataFrame.metadata` for more details.
322313 """
323- pass
324314
325315 @abstractmethod
326316 def num_chunks (self ) -> int :
327317 """
328318 Return the number of chunks the column consists of.
329319 """
330- pass
331320
332321 @abstractmethod
333322 def get_chunks (self , n_chunks : int | None = None ) -> Iterable [Column ]:
@@ -336,7 +325,6 @@ def get_chunks(self, n_chunks: int | None = None) -> Iterable[Column]:
336325
337326 See `DataFrame.get_chunks` for details on ``n_chunks``.
338327 """
339- pass
340328
341329 @abstractmethod
342330 def get_buffers (self ) -> ColumnBuffers :
@@ -360,7 +348,6 @@ def get_buffers(self) -> ColumnBuffers:
360348 if the data buffer does not have an associated offsets
361349 buffer.
362350 """
363- pass
364351
365352
366353# def get_children(self) -> Iterable[Column]:
@@ -391,7 +378,6 @@ class DataFrame(ABC):
391378 @abstractmethod
392379 def __dataframe__ (self , nan_as_null : bool = False , allow_copy : bool = True ):
393380 """Construct a new interchange object, potentially changing the parameters."""
394- pass
395381
396382 @property
397383 @abstractmethod
@@ -405,14 +391,12 @@ def metadata(self) -> dict[str, Any]:
405391 entries, please add name the keys with the name of the library
406392 followed by a period and the desired name, e.g, ``pandas.indexcol``.
407393 """
408- pass
409394
410395 @abstractmethod
411396 def num_columns (self ) -> int :
412397 """
413398 Return the number of columns in the DataFrame.
414399 """
415- pass
416400
417401 @abstractmethod
418402 def num_rows (self ) -> int | None :
@@ -422,56 +406,48 @@ def num_rows(self) -> int | None:
422406 """
423407 Return the number of rows in the DataFrame, if available.
424408 """
425- pass
426409
427410 @abstractmethod
428411 def num_chunks (self ) -> int :
429412 """
430413 Return the number of chunks the DataFrame consists of.
431414 """
432- pass
433415
434416 @abstractmethod
435417 def column_names (self ) -> Iterable [str ]:
436418 """
437419 Return an iterator yielding the column names.
438420 """
439- pass
440421
441422 @abstractmethod
442423 def get_column (self , i : int ) -> Column :
443424 """
444425 Return the column at the indicated position.
445426 """
446- pass
447427
448428 @abstractmethod
449429 def get_column_by_name (self , name : str ) -> Column :
450430 """
451431 Return the column whose name is the indicated name.
452432 """
453- pass
454433
455434 @abstractmethod
456435 def get_columns (self ) -> Iterable [Column ]:
457436 """
458437 Return an iterator yielding the columns.
459438 """
460- pass
461439
462440 @abstractmethod
463441 def select_columns (self , indices : Sequence [int ]) -> DataFrame :
464442 """
465443 Create a new DataFrame by selecting a subset of columns by index.
466444 """
467- pass
468445
469446 @abstractmethod
470447 def select_columns_by_name (self , names : Sequence [str ]) -> DataFrame :
471448 """
472449 Create a new DataFrame by selecting a subset of columns by name.
473450 """
474- pass
475451
476452 @abstractmethod
477453 def get_chunks (self , n_chunks : int | None = None ) -> Iterable [DataFrame ]:
@@ -483,4 +459,3 @@ def get_chunks(self, n_chunks: int | None = None) -> Iterable[DataFrame]:
483459 ``self.num_chunks()``, meaning the producer must subdivide each chunk
484460 before yielding it.
485461 """
486- pass
0 commit comments