MCPcopy
hub / github.com/pandas-dev/pandas / __repr__

Method __repr__

pandas/core/frame.py:1191–1201  ·  view source on GitHub ↗

Return a string representation for a particular DataFrame.

(self)

Source from the content-addressed store, hash-verified

1189 )
1190
1191 def __repr__(self) -> str:
1192 """
1193 Return a string representation for a particular DataFrame.
1194 """
1195 if self._info_repr():
1196 buf = StringIO()
1197 self.info(buf=buf)
1198 return buf.getvalue()
1199
1200 repr_params = fmt.get_dataframe_repr_params()
1201 return self.to_string(**repr_params)
1202
1203 def _repr_html_(self) -> str | None:
1204 """

Callers 1

Calls 3

_info_reprMethod · 0.95
infoMethod · 0.95
to_stringMethod · 0.95

Tested by 1