Skip to content

Commit c805368

Browse files
DOC: Show warning as a comment (#20329)
1 parent 3ee7ba3 commit c805368

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/errors/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ class DtypeWarning(Warning):
6868
... 'b': ['b'] * 300000})
6969
>>> df.to_csv('test.csv', index=False)
7070
>>> df2 = pd.read_csv('test.csv')
71-
72-
DtypeWarning: Columns (0) have mixed types
71+
... # DtypeWarning: Columns (0) have mixed types
7372
7473
Important to notice that ``df2`` will contain both `str` and `int` for the
7574
same input, '1'.

0 commit comments

Comments
 (0)