Skip to content

Commit

Permalink
refactor(python): Correcting misspelled return value and unifying reg…
Browse files Browse the repository at this point in the history
…ional spelling (#20375)
  • Loading branch information
noexecstack authored Dec 20, 2024
1 parent 2a5832a commit ff00869
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py-polars/polars/convert/normalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ def _simple_json_normalize(
data=data, separator=separator, max_level=max_level
)
elif isinstance(data, list):
normalised_json_list = [
normalized_json_list = [
_simple_json_normalize(row, separator=separator, max_level=max_level)
for row in data
]
return normalised_json_list
return normalized_json_list
return normalized_json_object
else:
return data
Expand All @@ -58,7 +58,7 @@ def _normalize_json_ordered(
Returns
-------
dict or list of dicts, matching `normalised_json_object`
dict or list of dicts, matching `normalized_json_object`
"""
top_dict_ = {k: v for k, v in data.items() if not isinstance(v, dict)}
nested_dict_ = normalize_json(
Expand Down

0 comments on commit ff00869

Please sign in to comment.