@@ -123,18 +123,22 @@ def ip():
123123
124124@pytest .fixture (params = [True , False , None ])
125125def 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]
127128 This indicates whether categoricals should return values for
128129 values which are not in the grouper [False / None], or only values which
129130 appear in the grouper [True]. [None] is supported for future compatibility
130131 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+ """
132134 return request .param
133135
134136
135137@pytest .fixture (params = [True , False , None ])
136138def ordered_fixture (request ):
137- """Boolean 'ordered' parameter for Categorical."""
139+ """
140+ Boolean 'ordered' parameter for Categorical.
141+ """
138142 return request .param
139143
140144
@@ -234,15 +238,16 @@ def cython_table_items(request):
234238
235239
236240def _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
238243 keys and expected result.
239244
240245 Parameters
241246 ----------
242247 ndframe : DataFrame or Series
243248 func_names_and_expected : Sequence of two items
244249 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.
246251
247252 Returns
248253 -------
@@ -341,7 +346,8 @@ def strict_data_files(pytestconfig):
341346
342347@pytest .fixture
343348def datapath (strict_data_files ):
344- """Get the path to a data file.
349+ """
350+ Get the path to a data file.
345351
346352 Parameters
347353 ----------
@@ -375,7 +381,9 @@ def deco(*args):
375381
376382@pytest .fixture
377383def iris (datapath ):
378- """The iris dataset as a DataFrame."""
384+ """
385+ The iris dataset as a DataFrame.
386+ """
379387 return pd .read_csv (datapath ("data" , "iris.csv" ))
380388
381389
@@ -504,7 +512,8 @@ def tz_aware_fixture(request):
504512
505513@pytest .fixture (params = STRING_DTYPES )
506514def string_dtype (request ):
507- """Parametrized fixture for string dtypes.
515+ """
516+ Parametrized fixture for string dtypes.
508517
509518 * str
510519 * 'str'
@@ -515,7 +524,8 @@ def string_dtype(request):
515524
516525@pytest .fixture (params = BYTES_DTYPES )
517526def bytes_dtype (request ):
518- """Parametrized fixture for bytes dtypes.
527+ """
528+ Parametrized fixture for bytes dtypes.
519529
520530 * bytes
521531 * 'bytes'
@@ -525,7 +535,8 @@ def bytes_dtype(request):
525535
526536@pytest .fixture (params = OBJECT_DTYPES )
527537def object_dtype (request ):
528- """Parametrized fixture for object dtypes.
538+ """
539+ Parametrized fixture for object dtypes.
529540
530541 * object
531542 * 'object'
@@ -535,7 +546,8 @@ def object_dtype(request):
535546
536547@pytest .fixture (params = DATETIME64_DTYPES )
537548def datetime64_dtype (request ):
538- """Parametrized fixture for datetime64 dtypes.
549+ """
550+ Parametrized fixture for datetime64 dtypes.
539551
540552 * 'datetime64[ns]'
541553 * 'M8[ns]'
@@ -545,7 +557,8 @@ def datetime64_dtype(request):
545557
546558@pytest .fixture (params = TIMEDELTA64_DTYPES )
547559def timedelta64_dtype (request ):
548- """Parametrized fixture for timedelta64 dtypes.
560+ """
561+ Parametrized fixture for timedelta64 dtypes.
549562
550563 * 'timedelta64[ns]'
551564 * 'm8[ns]'
0 commit comments