@@ -123,18 +123,22 @@ def ip():
123
123
124
124
@pytest .fixture (params = [True , False , None ])
125
125
def observed (request ):
126
- """ pass in the observed keyword to groupby for [True, False]
126
+ """
127
+ Pass in the observed keyword to groupby for [True, False]
127
128
This indicates whether categoricals should return values for
128
129
values which are not in the grouper [False / None], or only values which
129
130
appear in the grouper [True]. [None] is supported for future compatibility
130
131
if we decide to change the default (and would need to warn if this
131
- parameter is not passed)"""
132
+ parameter is not passed).
133
+ """
132
134
return request .param
133
135
134
136
135
137
@pytest .fixture (params = [True , False , None ])
136
138
def ordered_fixture (request ):
137
- """Boolean 'ordered' parameter for Categorical."""
139
+ """
140
+ Boolean 'ordered' parameter for Categorical.
141
+ """
138
142
return request .param
139
143
140
144
@@ -234,15 +238,16 @@ def cython_table_items(request):
234
238
235
239
236
240
def _get_cython_table_params (ndframe , func_names_and_expected ):
237
- """combine frame, functions from SelectionMixin._cython_table
241
+ """
242
+ Combine frame, functions from SelectionMixin._cython_table
238
243
keys and expected result.
239
244
240
245
Parameters
241
246
----------
242
247
ndframe : DataFrame or Series
243
248
func_names_and_expected : Sequence of two items
244
249
The first item is a name of a NDFrame method ('sum', 'prod') etc.
245
- The second item is the expected return value
250
+ The second item is the expected return value.
246
251
247
252
Returns
248
253
-------
@@ -341,7 +346,8 @@ def strict_data_files(pytestconfig):
341
346
342
347
@pytest .fixture
343
348
def datapath (strict_data_files ):
344
- """Get the path to a data file.
349
+ """
350
+ Get the path to a data file.
345
351
346
352
Parameters
347
353
----------
@@ -375,7 +381,9 @@ def deco(*args):
375
381
376
382
@pytest .fixture
377
383
def iris (datapath ):
378
- """The iris dataset as a DataFrame."""
384
+ """
385
+ The iris dataset as a DataFrame.
386
+ """
379
387
return pd .read_csv (datapath ("data" , "iris.csv" ))
380
388
381
389
@@ -504,7 +512,8 @@ def tz_aware_fixture(request):
504
512
505
513
@pytest .fixture (params = STRING_DTYPES )
506
514
def string_dtype (request ):
507
- """Parametrized fixture for string dtypes.
515
+ """
516
+ Parametrized fixture for string dtypes.
508
517
509
518
* str
510
519
* 'str'
@@ -515,7 +524,8 @@ def string_dtype(request):
515
524
516
525
@pytest .fixture (params = BYTES_DTYPES )
517
526
def bytes_dtype (request ):
518
- """Parametrized fixture for bytes dtypes.
527
+ """
528
+ Parametrized fixture for bytes dtypes.
519
529
520
530
* bytes
521
531
* 'bytes'
@@ -525,7 +535,8 @@ def bytes_dtype(request):
525
535
526
536
@pytest .fixture (params = OBJECT_DTYPES )
527
537
def object_dtype (request ):
528
- """Parametrized fixture for object dtypes.
538
+ """
539
+ Parametrized fixture for object dtypes.
529
540
530
541
* object
531
542
* 'object'
@@ -535,7 +546,8 @@ def object_dtype(request):
535
546
536
547
@pytest .fixture (params = DATETIME64_DTYPES )
537
548
def datetime64_dtype (request ):
538
- """Parametrized fixture for datetime64 dtypes.
549
+ """
550
+ Parametrized fixture for datetime64 dtypes.
539
551
540
552
* 'datetime64[ns]'
541
553
* 'M8[ns]'
@@ -545,7 +557,8 @@ def datetime64_dtype(request):
545
557
546
558
@pytest .fixture (params = TIMEDELTA64_DTYPES )
547
559
def timedelta64_dtype (request ):
548
- """Parametrized fixture for timedelta64 dtypes.
560
+ """
561
+ Parametrized fixture for timedelta64 dtypes.
549
562
550
563
* 'timedelta64[ns]'
551
564
* 'm8[ns]'
0 commit comments