diff --git a/py-polars/polars/convert/normalize.py b/py-polars/polars/convert/normalize.py index a92108d930bb..239305b7cb5d 100644 --- a/py-polars/polars/convert/normalize.py +++ b/py-polars/polars/convert/normalize.py @@ -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 @@ -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(