1
1
from __future__ import annotations
2
2
3
- from typing import NoReturn , Sequence , TYPE_CHECKING
3
+ from typing import Any , NoReturn , Sequence , TYPE_CHECKING
4
4
5
5
if TYPE_CHECKING :
6
6
from ._types import Scalar
@@ -19,6 +19,34 @@ class Column:
19
19
constructor functions or an already-created dataframe object retrieved via
20
20
21
21
"""
22
+
23
+ def __column_namespace__ (
24
+ self : Column , / , * , api_version : str | None = None
25
+ ) -> Any :
26
+ """
27
+ Returns an object that has all the Dataframe Standard API functions on it.
28
+
29
+ Parameters
30
+ ----------
31
+ api_version: Optional[str]
32
+ String representing the version of the dataframe API specification
33
+ to be returned, in ``'YYYY.MM'`` form, for example, ``'2023.04'``.
34
+ If it is ``None``, it should return the namespace corresponding to
35
+ latest version of the dataframe API specification. If the given
36
+ version is invalid or not implemented for the given module, an
37
+ error should be raised. Default: ``None``.
38
+
39
+ Returns
40
+ -------
41
+ namespace: Any
42
+ An object representing the dataframe API namespace. It should have
43
+ every top-level function defined in the specification as an
44
+ attribute. It may contain other public names as well, but it is
45
+ recommended to only include those names that are part of the
46
+ specification.
47
+
48
+ """
49
+
22
50
def __len__ (self ) -> int :
23
51
"""
24
52
Return the number of rows.
0 commit comments