@@ -328,7 +328,7 @@ def unique_nulls_fixture(request):
328
328
# ----------------------------------------------------------------
329
329
330
330
331
- @pytest .fixture (params = [pd . DataFrame , pd . Series ])
331
+ @pytest .fixture (params = [DataFrame , Series ])
332
332
def frame_or_series (request ):
333
333
"""
334
334
Fixture to parametrize over DataFrame and Series.
@@ -338,7 +338,7 @@ def frame_or_series(request):
338
338
339
339
# error: List item 0 has incompatible type "Type[Index]"; expected "Type[IndexOpsMixin]"
340
340
@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]
342
342
)
343
343
def index_or_series (request ):
344
344
"""
@@ -356,9 +356,7 @@ def index_or_series(request):
356
356
index_or_series2 = index_or_series
357
357
358
358
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" ])
362
360
def index_or_series_or_array (request ):
363
361
"""
364
362
Fixture to parametrize over Index, Series, and ExtensionArray
@@ -559,7 +557,7 @@ def index_with_missing(request):
559
557
# ----------------------------------------------------------------
560
558
@pytest .fixture
561
559
def empty_series ():
562
- return pd . Series ([], index = [], dtype = np .float64 )
560
+ return Series ([], index = [], dtype = np .float64 )
563
561
564
562
565
563
@pytest .fixture
@@ -596,7 +594,7 @@ def _create_series(index):
596
594
""" Helper for the _series dict """
597
595
size = len (index )
598
596
data = np .random .randn (size )
599
- return pd . Series (data , index = index , name = "a" )
597
+ return Series (data , index = index , name = "a" )
600
598
601
599
602
600
_series = {
@@ -1437,16 +1435,16 @@ def any_numpy_dtype(request):
1437
1435
("boolean" , [True , np .nan , False ]),
1438
1436
("boolean" , [True , pd .NA , False ]),
1439
1437
("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" )]),
1441
1439
("date" , [date (2013 , 1 , 1 ), np .nan , date (2018 , 1 , 1 )]),
1442
1440
# The following two dtypes are commented out due to GH 23554
1443
1441
# ('complex', [1 + 1j, np.nan, 2 + 2j]),
1444
1442
# ('timedelta64', [np.timedelta64(1, 'D'),
1445
1443
# np.nan, np.timedelta64(2, 'D')]),
1446
1444
("timedelta" , [timedelta (1 ), np .nan , timedelta (2 )]),
1447
1445
("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 )]),
1450
1448
]
1451
1449
ids , _ = zip (* _any_skipna_inferred_dtype ) # use inferred type as fixture-id
1452
1450
0 commit comments