MCPcopy Create free account
hub / github.com/ahalev/python-microgrid / _dump_representation

Function _dump_representation

src/pymgrid/utils/serialize.py:94–98  ·  view source on GitHub ↗
(data, path, stream_loc)

Source from the content-addressed store, hash-verified

92
93
94def _dump_representation(data, path, stream_loc):
95 if not path.exists():
96 path.parent.mkdir(parents=True, exist_ok=True)
97 pd.DataFrame(data).to_csv(path)
98 return str(path.relative_to(stream_loc))
99
100
101def _pandas_df_constructor(loader, node):

Callers 1

_arr_representerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected