@@ -147,7 +147,7 @@ def nested_to_record(
147147 return new_ds
148148
149149
150- def _normalise_json (
150+ def _normalize_json (
151151 data : Any ,
152152 key_string : str ,
153153 normalized_dict : dict [str , Any ],
@@ -177,7 +177,7 @@ def _normalise_json(
177177 if not key_string :
178178 new_key = new_key .removeprefix (separator )
179179
180- _normalise_json (
180+ _normalize_json (
181181 data = value ,
182182 key_string = new_key ,
183183 normalized_dict = normalized_dict ,
@@ -188,7 +188,7 @@ def _normalise_json(
188188 return normalized_dict
189189
190190
191- def _normalise_json_ordered (data : dict [str , Any ], separator : str ) -> dict [str , Any ]:
191+ def _normalize_json_ordered (data : dict [str , Any ], separator : str ) -> dict [str , Any ]:
192192 """
193193 Order the top level keys and then recursively go to depth
194194
@@ -201,10 +201,10 @@ def _normalise_json_ordered(data: dict[str, Any], separator: str) -> dict[str, A
201201
202202 Returns
203203 -------
204- dict or list of dicts, matching `normalised_json_object `
204+ dict or list of dicts, matching `normalized_json_object `
205205 """
206206 top_dict_ = {k : v for k , v in data .items () if not isinstance (v , dict )}
207- nested_dict_ = _normalise_json (
207+ nested_dict_ = _normalize_json (
208208 data = {k : v for k , v in data .items () if isinstance (v , dict )},
209209 key_string = "" ,
210210 normalized_dict = {},
@@ -235,7 +235,7 @@ def _simple_json_normalize(
235235 Returns
236236 -------
237237 frame : DataFrame
238- d - dict or list of dicts, matching `normalised_json_object `
238+ d - dict or list of dicts, matching `normalized_json_object `
239239
240240 Examples
241241 --------
@@ -256,14 +256,14 @@ def _simple_json_normalize(
256256 }
257257
258258 """
259- normalised_json_object = {}
259+ normalized_json_object = {}
260260 # expect a dictionary, as most jsons are. However, lists are perfectly valid
261261 if isinstance (ds , dict ):
262- normalised_json_object = _normalise_json_ordered (data = ds , separator = sep )
262+ normalized_json_object = _normalize_json_ordered (data = ds , separator = sep )
263263 elif isinstance (ds , list ):
264- normalised_json_list = [_simple_json_normalize (row , sep = sep ) for row in ds ]
265- return normalised_json_list
266- return normalised_json_object
264+ normalized_json_list = [_simple_json_normalize (row , sep = sep ) for row in ds ]
265+ return normalized_json_list
266+ return normalized_json_object
267267
268268
269269def json_normalize (
0 commit comments