Skip to content

Commit

Permalink
Update flatten function: simplify return
Browse files Browse the repository at this point in the history
Co-authored-by: Eduardo Cuducos <4732915+cuducos@users.noreply.github.com>
  • Loading branch information
FelipeSBarros and cuducos authored Feb 13, 2024
1 parent 90785b9 commit 4f2b8a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crossfire/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,4 @@ def flatten(data, nested_columns=None):
keys = set(item.keys()) & nested_columns
for key in keys:
for k, v in item.get(key).items():
new_key = (f"{key}_{k}")
return new_key, v
return f"{key}_{k}", v

0 comments on commit 4f2b8a5

Please # to comment.