Skip to content

Commit

Permalink
Add docstrings for headers parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Antetokounpo committed Oct 3, 2020
1 parent 4538944 commit be529b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pandas/io/json/_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,10 @@ def read_json(
a file-like buffer. See the fsspec and backend storage implementation
docs for the set of allowed keys and values.
headers : dict, optional
HTTP headers that are passed to urlopen. Allows to specify the User-Agent
in case the urllib User-Agent is blocked for example
.. versionadded:: 1.2.0
Returns
Expand Down
4 changes: 4 additions & 0 deletions pandas/io/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,10 @@
a file-like buffer. See the fsspec and backend storage implementation
docs for the set of allowed keys and values.
headers : dict, optional
HTTP headers that are passed to urlopen. Allows to specify the User-Agent
in case the urllib User-Agent is blocked for example
.. versionadded:: 1.2
Returns
Expand Down

0 comments on commit be529b1

Please sign in to comment.