@@ -518,33 +518,33 @@ def test_info(self, verbose):
518
518
519
519
@pytest .mark .skipif (PYPY , reason = "on PyPy deep=True doesn't change result" )
520
520
def test_info_memory_usage_deep_not_pypy (self ):
521
- s_with_object_index = pd . Series ({"a" : [1 ]}, index = ["foo" ])
521
+ s_with_object_index = Series ({"a" : [1 ]}, index = ["foo" ])
522
522
assert s_with_object_index .memory_usage (
523
523
index = True , deep = True
524
524
) > s_with_object_index .memory_usage (index = True )
525
525
526
- s_object = pd . Series ({"a" : ["a" ]})
526
+ s_object = Series ({"a" : ["a" ]})
527
527
assert s_object .memory_usage (deep = True ) > s_object .memory_usage ()
528
528
529
529
@pytest .mark .skipif (not PYPY , reason = "on PyPy deep=True doesn't change result" )
530
530
def test_info_memory_usage_deep_pypy (self ):
531
- s_with_object_index = pd . Series ({"a" : [1 ]}, index = ["foo" ])
531
+ s_with_object_index = Series ({"a" : [1 ]}, index = ["foo" ])
532
532
assert s_with_object_index .memory_usage (
533
533
index = True , deep = True
534
534
) == s_with_object_index .memory_usage (index = True )
535
535
536
- s_object = pd . Series ({"a" : ["a" ]})
536
+ s_object = Series ({"a" : ["a" ]})
537
537
assert s_object .memory_usage (deep = True ) == s_object .memory_usage ()
538
538
539
539
def test_info_memory_usage_qualified (self ):
540
540
541
541
buf = StringIO ()
542
- s = pd . Series (1 , index = [1 , 2 , 3 ])
542
+ s = Series (1 , index = [1 , 2 , 3 ])
543
543
s .info (buf = buf )
544
544
assert "+" not in buf .getvalue ()
545
545
546
546
buf = StringIO ()
547
- s = pd . Series (1 , index = list ("ABC" ))
547
+ s = Series (1 , index = list ("ABC" ))
548
548
s .info (buf = buf )
549
549
assert "+" in buf .getvalue ()
550
550
@@ -587,7 +587,7 @@ def memory_usage(f):
587
587
def test_info_categorical (self ):
588
588
# GH14298
589
589
idx = pd .CategoricalIndex (["a" , "b" ])
590
- s = pd . Series (np .zeros ((2 )), index = idx )
590
+ s = Series (np .zeros ((2 )), index = idx )
591
591
592
592
buf = StringIO ()
593
593
s .info (buf = buf )
0 commit comments