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 8b2413b commit 27a1eceCopy full SHA for 27a1ece
spec/API_specification/dataframe_api/column_object.py
@@ -1,14 +1,24 @@
1
-from typing import NoReturn
+from __future__ import annotations
2
+
3
+from typing import NoReturn, overload, Sequence
4
5
class Column:
6
def __len__(self) -> int:
7
"""
8
Return the number of rows.
9
10
- def __getitem__(self, row: int) -> object:
11
+ @overload
12
+ def __getitem__(self, key: int) -> object:
13
+ ...
14
15
16
+ def __getitem__(self, key: Sequence[int]) -> Column:
17
18
19
+ def __getitem__(self, key: int | Sequence[int]) -> object | Column:
20
- Get the element at row index `row`.
21
+ Get the element at row index `key`.
22
23
24
def __iter__(self) -> NoReturn:
0 commit comments