Skip to content

Commit 5ea1a0f

Browse files
committed
update indent
1 parent ecdab30 commit 5ea1a0f

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

pandas/core/series.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -4236,14 +4236,14 @@ def replace(
42364236
memory usage: 7.6+ MB
42374237
42384238
>>> s.info(memory_usage='deep')
4239-
<class 'pandas.core.series.Series'>
4240-
RangeIndex: 1000000 entries, 0 to 999999
4241-
Series name: None
4242-
# Non-Null Count Dtype
4243-
--- -------------- -----
4244-
0 1000000 non-null object
4245-
dtypes: object(1)
4246-
memory usage: 62.9 MB""",
4239+
<class 'pandas.core.series.Series'>
4240+
RangeIndex: 1000000 entries, 0 to 999999
4241+
Series name: None
4242+
# Non-Null Count Dtype
4243+
--- -------------- -----
4244+
0 1000000 non-null object
4245+
dtypes: object(1)
4246+
memory usage: 62.9 MB""",
42474247
see_also_sub="""
42484248
Series.describe: Generate descriptive statistics of Series.
42494249
Series.memory_usage: Memory usage of Series.""",

pandas/tests/series/test_repr.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -518,33 +518,33 @@ def test_info(self, verbose):
518518

519519
@pytest.mark.skipif(PYPY, reason="on PyPy deep=True doesn't change result")
520520
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"])
522522
assert s_with_object_index.memory_usage(
523523
index=True, deep=True
524524
) > s_with_object_index.memory_usage(index=True)
525525

526-
s_object = pd.Series({"a": ["a"]})
526+
s_object = Series({"a": ["a"]})
527527
assert s_object.memory_usage(deep=True) > s_object.memory_usage()
528528

529529
@pytest.mark.skipif(not PYPY, reason="on PyPy deep=True doesn't change result")
530530
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"])
532532
assert s_with_object_index.memory_usage(
533533
index=True, deep=True
534534
) == s_with_object_index.memory_usage(index=True)
535535

536-
s_object = pd.Series({"a": ["a"]})
536+
s_object = Series({"a": ["a"]})
537537
assert s_object.memory_usage(deep=True) == s_object.memory_usage()
538538

539539
def test_info_memory_usage_qualified(self):
540540

541541
buf = StringIO()
542-
s = pd.Series(1, index=[1, 2, 3])
542+
s = Series(1, index=[1, 2, 3])
543543
s.info(buf=buf)
544544
assert "+" not in buf.getvalue()
545545

546546
buf = StringIO()
547-
s = pd.Series(1, index=list("ABC"))
547+
s = Series(1, index=list("ABC"))
548548
s.info(buf=buf)
549549
assert "+" in buf.getvalue()
550550

@@ -587,7 +587,7 @@ def memory_usage(f):
587587
def test_info_categorical(self):
588588
# GH14298
589589
idx = pd.CategoricalIndex(["a", "b"])
590-
s = pd.Series(np.zeros((2)), index=idx)
590+
s = Series(np.zeros((2)), index=idx)
591591

592592
buf = StringIO()
593593
s.info(buf=buf)

0 commit comments

Comments
 (0)