File tree Expand file tree Collapse file tree 5 files changed +34
-38
lines changed Expand file tree Collapse file tree 5 files changed +34
-38
lines changed Original file line number Diff line number Diff line change 11
11
12
12
13
13
class DataFrame :
14
+ """
15
+ A DataFrame.
16
+
17
+ Notes
18
+ -----
19
+ Note that this DataFrame class is not meant to be instantiated directly by
20
+ users of the library implementing the dataframe API standard. Rather, use
21
+ constructor functions or an already-created dataframe object retrieved via
22
+
23
+ """
14
24
@property
15
25
def dataframe (self ) -> object :
16
26
"""
Original file line number Diff line number Diff line change 4
4
from .dataframe_object import DataFrame
5
5
6
6
7
+ __all__ = ['GroupBy' ]
8
+
9
+
7
10
class GroupBy :
11
+ """
12
+ GroupBy class.
13
+
14
+ Note that this class is not meant to be constructed by users.
15
+ It is returned from `DataFrame.groupby`.
16
+
17
+ **Methods**
18
+
19
+ """
8
20
def any (self , skip_nulls : bool = True ) -> "DataFrame" :
9
21
...
10
22
Original file line number Diff line number Diff line change @@ -149,24 +149,5 @@ TODO
149
149
150
150
Methods
151
151
-------
152
- ..
153
- NOTE: please keep the methods in alphabetical order
154
-
155
-
156
- .. autosummary ::
157
- :toctree: generated
158
- :template: property.rst
159
152
160
- DataFrame.__add__
161
- DataFrame.__eq__
162
- DataFrame.__floordiv__
163
- DataFrame.__ge__
164
- DataFrame.__gt__
165
- DataFrame.__le__
166
- DataFrame.__lt__
167
- DataFrame.__ne__
168
- DataFrame.__mod__
169
- DataFrame.__mul__
170
- DataFrame.__pow__
171
- DataFrame.__sub__
172
- DataFrame.__truediv__
153
+ .. autoclass :: DataFrame
Original file line number Diff line number Diff line change @@ -6,26 +6,11 @@ Groupby object
6
6
A conforming implementation of the dataframe API standard must provide and
7
7
support a groupby object having the following attributes and methods.
8
8
9
- -------------------------------------------------
10
-
11
- Methods
12
- -------
13
- ..
14
- NOTE: please keep the methods in alphabetical order
15
-
16
9
.. currentmodule :: dataframe_api
17
10
18
11
.. autosummary ::
19
12
:toctree: generated
20
- :template: property.rst
13
+ :template: class.rst
14
+
15
+ GroupBy
21
16
22
- GroupBy.all
23
- GroupBy.any
24
- GroupBy.max
25
- GroupBy.min
26
- GroupBy.mean
27
- GroupBy.median
28
- GroupBy.prod
29
- GroupBy.std
30
- GroupBy.sum
31
- GroupBy.var
Original file line number Diff line number Diff line change 46
46
47
47
autosummary_generate = True
48
48
autodoc_typehints = 'signature'
49
+ autodoc_default_options = {
50
+ # 'attributes': True,
51
+ 'members' : True ,
52
+ 'special-members' : True ,
53
+ 'undoc-members' : True ,
54
+ 'exclude-members' : '__annotations__, __dict__' ,
55
+ }
49
56
add_module_names = False
57
+ napoleon_numpy_docstring = True
50
58
napoleon_custom_sections = [('Returns' , 'params_style' )]
51
59
default_role = 'code'
52
60
You can’t perform that action at this time.
0 commit comments