Skip to content

Commit e2b9803

Browse files
committed
Remove to_integer_array keyword in io/json/_normalize.py
1 parent b5698c0 commit e2b9803

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/io/json/_normalize.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ def json_normalize(
117117
errors: Optional[str] = "raise",
118118
sep: str = ".",
119119
max_level: Optional[int] = None,
120-
to_integer_array: bool = False,
121120
):
122121
"""
123122
Normalize semi-structured JSON data into a flat table.
@@ -256,7 +255,7 @@ def _pull_field(js, spec):
256255
# TODO: handle record value which are lists, at least error
257256
# reasonably
258257
data = nested_to_record(data, sep=sep, max_level=max_level)
259-
return DataFrame(data, to_integer_array=to_integer_array)
258+
return DataFrame(data)
260259
elif not isinstance(record_path, list):
261260
record_path = [record_path]
262261

@@ -316,7 +315,7 @@ def _recursive_extract(data, path, seen_meta, level=0):
316315

317316
_recursive_extract(data, record_path, {}, level=0)
318317

319-
result = DataFrame(records, to_integer_array=to_integer_array)
318+
result = DataFrame(records)
320319

321320
if record_prefix is not None:
322321
result = result.rename(columns=lambda x: "{p}{c}".format(p=record_prefix, c=x))

0 commit comments

Comments
 (0)