We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7717f6 commit fa3b0dbCopy full SHA for fa3b0db
utils.py
@@ -78,7 +78,7 @@ def _flatdict(d: dict, parent_key: str = "", sep: str = ".") -> dict:
78
79
def convert_to_dataframe(d: dict) -> polars.DataFrame:
80
"""facilities internal dict to dataframe"""
81
- flatdata = [_flatdict(f) for _, f in d]
+ flatdata = [_flatdict(f) for f in d.values()]
82
fieldnames = [k for k in flatdata[0].keys() if k not in flatdata_filtered_keys]
83
# https://docs.pola.rs/api/python/stable/reference/api/polars.from_dicts.html
84
df = polars.from_dicts(flatdata, schema=fieldnames)
0 commit comments