We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d10a096 commit e689f0bCopy full SHA for e689f0b
spec/API_specification/dataframe_api/column_object.py
@@ -1,2 +1,24 @@
1
+from typing import NoReturn
2
+
3
class Column:
- pass
4
+ def __len__(self) -> int:
5
+ """
6
+ Return the number of rows.
7
8
9
+ def __getitem__(self, row) -> object:
10
11
+ Get the element at row index `row`.
12
13
14
+ def __iter__(self) -> NoReturn:
15
16
+ Iterate over elements.
17
18
+ This is intentionally "poisoned" to discourage inefficient code patterns.
19
20
+ Raises
21
+ ------
22
+ NotImplementedError
23
24
+ raise NotImplementedError("'__iter__' is intentionally not implemented.")
0 commit comments