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

Method __repr__

pandas/io/pytables.py:2856–2865  ·  view source on GitHub ↗

return a pretty representation of myself

(self)

Source from the content-addressed store, hash-verified

2854 return getattr(self.group._v_attrs, "pandas_type", None)
2855
2856 def __repr__(self) -> str:
2857 """return a pretty representation of myself"""
2858 self.infer_axes()
2859 s = self.shape
2860 if s is not None:
2861 if isinstance(s, (list, tuple)):
2862 jshape = ",".join([pprint_thing(x) for x in s])
2863 s = f"[{jshape}]"
2864 return f"{self.pandas_type:12.12} (shape->{s})"
2865 return self.pandas_type
2866
2867 def set_object_info(self) -> None:
2868 """set my pandas type & version"""

Callers

nothing calls this directly

Calls 3

infer_axesMethod · 0.95
pprint_thingFunction · 0.90
joinMethod · 0.45

Tested by

no test coverage detected