Skip to content

Commit f391cbf

Browse files
ppflrsTomAugspurger
authored andcommitted
DOC: Fix typo in example (#19537)
Fix typo in the example for pandas.io.formats.style.Styler.format
1 parent d5a7e7c commit f391cbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/formats/style.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def format(self, formatter, subset=None):
364364
>>> df = pd.DataFrame(np.random.randn(4, 2), columns=['a', 'b'])
365365
>>> df.style.format("{:.2%}")
366366
>>> df['c'] = ['a', 'b', 'c', 'd']
367-
>>> df.style.format({'C': str.upper})
367+
>>> df.style.format({'c': str.upper})
368368
"""
369369
if subset is None:
370370
row_locs = range(len(self.data))

0 commit comments

Comments
 (0)