Skip to content

Commit afdc840

Browse files
committed
Add headers option to read_json()
1 parent 3f9b6a2 commit afdc840

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/io/json/_json.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ def read_json(
377377
compression: CompressionOptions = "infer",
378378
nrows: Optional[int] = None,
379379
storage_options: StorageOptions = None,
380+
headers: dict = {}
380381
):
381382
"""
382383
Convert a JSON string to pandas object.
@@ -614,6 +615,7 @@ def read_json(
614615
encoding=encoding,
615616
compression=compression,
616617
storage_options=storage_options,
618+
headers=headers
617619
)
618620

619621
json_reader = JsonReader(

0 commit comments

Comments
 (0)