Skip to content
Snippets Groups Projects
Commit 2c1f79e6 authored by Alán Muñoz's avatar Alán Muñoz
Browse files

fix(meta): update given df.to_dict returning list

parent 7206793a
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ def flatten_dict(nested_dict, separator="/"):
"""
df = pd.json_normalize(nested_dict, sep=separator)
flattened = df.to_dict(orient="records") or {}
flattened = df.to_dict(orient="records")[0] or {}
return flattened
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment