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

Function test_repr_get_storer

pandas/tests/io/pytables/test_store.py:154–165  ·  view source on GitHub ↗
(temp_hdfstore)

Source from the content-addressed store, hash-verified

152
153
154def test_repr_get_storer(temp_hdfstore):
155 # storers
156 df = DataFrame(
157 1.1 * np.arange(120).reshape((30, 4)),
158 columns=Index(list("ABCD"), dtype=object),
159 index=Index([f"i-{i}" for i in range(30)], dtype=object),
160 )
161 temp_hdfstore.append("df", df)
162
163 s = temp_hdfstore.get_storer("df")
164 repr(s)
165 str(s)
166
167
168def test_contains(temp_hdfstore):

Callers

nothing calls this directly

Calls 5

DataFrameClass · 0.90
IndexClass · 0.90
get_storerMethod · 0.80
reshapeMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected