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 03dd698 commit 015541eCopy full SHA for 015541e
pandas/core/frame.py
@@ -988,15 +988,13 @@ def __repr__(self) -> str:
988
"""
989
Return a string representation for a particular DataFrame.
990
991
- buf = StringIO("")
992
if self._info_repr():
+ buf = StringIO("")
993
self.info(buf=buf)
994
return buf.getvalue()
995
996
repr_params = fmt.get_dataframe_repr_params()
997
- self.to_string(buf=buf, **repr_params)
998
-
999
- return buf.getvalue()
+ return self.to_string(**repr_params)
1000
1001
def _repr_html_(self) -> str | None:
1002
0 commit comments