We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de01518 commit 4aa2b8cCopy full SHA for 4aa2b8c
pandas/core/frame.py
@@ -990,7 +990,7 @@ def __repr__(self) -> str:
990
Return a string representation for a particular DataFrame.
991
"""
992
if self._info_repr():
993
- buf = StringIO("")
+ buf = StringIO()
994
self.info(buf=buf)
995
return buf.getvalue()
996
@@ -1004,7 +1004,7 @@ def _repr_html_(self) -> str | None:
1004
Mainly for IPython notebook.
1005
1006
1007
1008
1009
# need to escape the <class>, should be the first line.
1010
val = buf.getvalue().replace("<", r"<", 1)
0 commit comments