Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ahalev/python-microgrid
/ to_frame
Method
to_frame
src/pymgrid/utils/logger.py:44–45 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
42
return
{k: list(map(float, v))
for
k, v in self.data.items()}
43
44
def
to_frame(self):
45
return
pd.DataFrame(self.data)
46
47
def
serialize(self, key):
48
return
{key: self.to_frame()}
if
len(self) > 0
else
{}
Callers
7
serialize
Method · 0.95
log_frame
Method · 0.45
__init__
Method · 0.45
__init__
Method · 0.45
add_grid_params
Function · 0.45
_get_obs
Method · 0.45
test_init
Method · 0.45
Calls
no outgoing calls
Tested by
1
test_init
Method · 0.36