Skip to content

Commit 88f7f51

Browse files
committed
fixed a doc string format
1 parent 6bd5b32 commit 88f7f51

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/generic.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10161,10 +10161,10 @@ def pct_change(
1016110161
Percentage change in French franc, Deutsche Mark, and Italian lira from
1016210162
1980-01-01 to 1980-03-01.
1016310163
10164-
>>> df = pd.DataFrame({
10164+
>>> df = pd.DataFrame({{
1016510165
... 'FR': [4.0405, 4.0963, 4.3149],
1016610166
... 'GR': [1.7246, 1.7482, 1.8519],
10167-
... 'IT': [804.74, 810.01, 860.13]},
10167+
... 'IT': [804.74, 810.01, 860.13]}},
1016810168
... index=['1980-01-01', '1980-02-01', '1980-03-01'])
1016910169
>>> df
1017010170
FR GR IT
@@ -10181,10 +10181,10 @@ def pct_change(
1018110181
Percentage of change in GOOG and APPL stock volume. Shows computing
1018210182
the percentage change between columns.
1018310183
10184-
>>> df = pd.DataFrame({
10184+
>>> df = pd.DataFrame({{
1018510185
... '2016': [1769950, 30586265],
1018610186
... '2015': [1500923, 40912316],
10187-
... '2014': [1371819, 41403351]},
10187+
... '2014': [1371819, 41403351]}},
1018810188
... index=['GOOG', 'APPL'])
1018910189
>>> df
1019010190
2016 2015 2014

0 commit comments

Comments
 (0)