File tree 3 files changed +7
-8
lines changed
API_specification/dataframe_api
3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 21
21
from enum import Enum
22
22
23
23
array = TypeVar ("array" )
24
- DataFrame = TypeVar ("DataFrame " )
24
+ Scalar = TypeVar ("Scalar " )
25
25
device = TypeVar ("device" )
26
26
dtype = TypeVar ("dtype" )
27
27
SupportsDLPack = TypeVar ("SupportsDLPack" )
Original file line number Diff line number Diff line change 4
4
from .column_object import Column
5
5
from .groupby_object import GroupBy
6
6
7
-
8
- __all__ = ["DataFrame" ]
7
+ from ._types import Scalar
9
8
10
9
11
- class Scalar :
12
- "A class to represent Python scalars"
10
+ __all__ = ["DataFrame" ]
13
11
14
12
15
13
class DataFrame :
Original file line number Diff line number Diff line change 65
65
# them don't actually refer to anything that we have a document for.
66
66
nitpick_ignore = [
67
67
('py:class' , 'array' ),
68
- ('py:class' , 'dataframe ' ),
68
+ ('py:class' , 'DataFrame ' ),
69
69
('py:class' , 'device' ),
70
70
('py:class' , 'dtype' ),
71
71
('py:class' , 'NestedSequence' ),
72
72
('py:class' , 'collections.abc.Sequence' ),
73
73
('py:class' , 'PyCapsule' ),
74
74
('py:class' , 'enum.Enum' ),
75
75
('py:class' , 'ellipsis' ),
76
+ ('py:class' , 'Scalar' ),
76
77
]
77
78
# NOTE: this alias handling isn't used yet - added in anticipation of future
78
- # need based on array API aliases.
79
+ # need based on dataframe API aliases.
79
80
# In dataframe_object.py we have to use aliased names for some types because they
80
- # would otherwise refer back to method objects of array
81
+ # would otherwise refer back to method objects of `dataframe`
81
82
autodoc_type_aliases = {
82
83
'dataframe' : 'dataframe' ,
83
84
'Device' : 'device' ,
You can’t perform that action at this time.
0 commit comments