diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 537463d293287..260213e2ae760 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -36,14 +36,14 @@ headers included in the request. This can be used to control the User-Agent header or send other custom headers (:issue:`36688`). For example: -.. ipython:: python +.. code-block:: ipython - headers = {"User-Agent": "pandas"} - df = pd.read_csv( - "https://download.bls.gov/pub/time.series/cu/cu.item", - sep="\t", - storage_options=headers - ) + In [1]: headers = {"User-Agent": "pandas"} + In [2]: df = pd.read_csv( + ...: "https://download.bls.gov/pub/time.series/cu/cu.item", + ...: sep="\t", + ...: storage_options=headers + ...: ) .. _whatsnew_130.enhancements.read_to_xml: