Skip to content

Commit ad9e205

Browse files
ppflrsharisbal
authored and
harisbal
committed
DOC: Fix typo in example (pandas-dev#19537)
Fix typo in the example for pandas.io.formats.style.Styler.format
1 parent 181fea4 commit ad9e205

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)