Skip to content

Commit c64d378

Browse files
committed
Add docstrings for headers parameter
1 parent 387a29c commit c64d378

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

pandas/io/json/_json.py

+4
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,10 @@ def read_json(
528528
a file-like buffer. See the fsspec and backend storage implementation
529529
docs for the set of allowed keys and values
530530
531+
headers : dict, optional
532+
HTTP headers that are passed to urlopen. Allows to specify the User-Agent
533+
in case the urllib User-Agent is blocked for example
534+
531535
.. versionadded:: 1.2.0
532536
533537
Returns

pandas/io/parsers.py

+4
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,10 @@
352352
a file-like buffer. See the fsspec and backend storage implementation
353353
docs for the set of allowed keys and values.
354354
355+
headers : dict, optional
356+
HTTP headers that are passed to urlopen. Allows to specify the User-Agent
357+
in case the urllib User-Agent is blocked for example
358+
355359
.. versionadded:: 1.2
356360
357361
Returns

0 commit comments

Comments
 (0)