File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
spec/API_specification/dataframe_api Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 5
5
if TYPE_CHECKING :
6
6
from typing_extensions import Self
7
7
8
- from dataframe_api .typing import AnyScalar , DType
8
+ from dataframe_api .typing import AnyScalar , DType , Namespace
9
9
10
10
__all__ = ["Scalar" ]
11
11
@@ -26,6 +26,20 @@ class Scalar(Protocol):
26
26
(even if it is backed by a null value).
27
27
"""
28
28
29
+ def __scalar_namespace__ (self ) -> Namespace :
30
+ """Return an object that has all the Dataframe Standard API functions on it.
31
+
32
+ Returns
33
+ -------
34
+ namespace
35
+ An object representing the dataframe API namespace. It should have
36
+ every top-level function defined in the specification as an
37
+ attribute. It may contain other public names as well, but it is
38
+ recommended to only include those names that are part of the
39
+ specification.
40
+ """
41
+ ...
42
+
29
43
def __lt__ (self , other : AnyScalar ) -> Scalar :
30
44
...
31
45
You can’t perform that action at this time.
0 commit comments