@@ -328,7 +328,7 @@ def unique_nulls_fixture(request):
328328# ----------------------------------------------------------------
329329
330330
331- @pytest .fixture (params = [pd . DataFrame , pd . Series ])
331+ @pytest .fixture (params = [DataFrame , Series ])
332332def frame_or_series (request ):
333333 """
334334 Fixture to parametrize over DataFrame and Series.
@@ -338,7 +338,7 @@ def frame_or_series(request):
338338
339339# error: List item 0 has incompatible type "Type[Index]"; expected "Type[IndexOpsMixin]"
340340@pytest .fixture (
341- params = [pd . Index , pd . Series ], ids = ["index" , "series" ] # type: ignore[list-item]
341+ params = [Index , Series ], ids = ["index" , "series" ] # type: ignore[list-item]
342342)
343343def index_or_series (request ):
344344 """
@@ -356,9 +356,7 @@ def index_or_series(request):
356356index_or_series2 = index_or_series
357357
358358
359- @pytest .fixture (
360- params = [pd .Index , pd .Series , pd .array ], ids = ["index" , "series" , "array" ]
361- )
359+ @pytest .fixture (params = [Index , Series , pd .array ], ids = ["index" , "series" , "array" ])
362360def index_or_series_or_array (request ):
363361 """
364362 Fixture to parametrize over Index, Series, and ExtensionArray
@@ -559,7 +557,7 @@ def index_with_missing(request):
559557# ----------------------------------------------------------------
560558@pytest .fixture
561559def empty_series ():
562- return pd . Series ([], index = [], dtype = np .float64 )
560+ return Series ([], index = [], dtype = np .float64 )
563561
564562
565563@pytest .fixture
@@ -596,7 +594,7 @@ def _create_series(index):
596594 """ Helper for the _series dict """
597595 size = len (index )
598596 data = np .random .randn (size )
599- return pd . Series (data , index = index , name = "a" )
597+ return Series (data , index = index , name = "a" )
600598
601599
602600_series = {
@@ -1437,16 +1435,16 @@ def any_numpy_dtype(request):
14371435 ("boolean" , [True , np .nan , False ]),
14381436 ("boolean" , [True , pd .NA , False ]),
14391437 ("datetime64" , [np .datetime64 ("2013-01-01" ), np .nan , np .datetime64 ("2018-01-01" )]),
1440- ("datetime" , [pd . Timestamp ("20130101" ), np .nan , pd . Timestamp ("20180101" )]),
1438+ ("datetime" , [Timestamp ("20130101" ), np .nan , Timestamp ("20180101" )]),
14411439 ("date" , [date (2013 , 1 , 1 ), np .nan , date (2018 , 1 , 1 )]),
14421440 # The following two dtypes are commented out due to GH 23554
14431441 # ('complex', [1 + 1j, np.nan, 2 + 2j]),
14441442 # ('timedelta64', [np.timedelta64(1, 'D'),
14451443 # np.nan, np.timedelta64(2, 'D')]),
14461444 ("timedelta" , [timedelta (1 ), np .nan , timedelta (2 )]),
14471445 ("time" , [time (1 ), np .nan , time (2 )]),
1448- ("period" , [pd . Period (2013 ), pd .NaT , pd . Period (2018 )]),
1449- ("interval" , [pd . Interval (0 , 1 ), np .nan , pd . Interval (0 , 2 )]),
1446+ ("period" , [Period (2013 ), pd .NaT , Period (2018 )]),
1447+ ("interval" , [Interval (0 , 1 ), np .nan , Interval (0 , 2 )]),
14501448]
14511449ids , _ = zip (* _any_skipna_inferred_dtype ) # use inferred type as fixture-id
14521450
0 commit comments