Skip to content

Commit e261bd0

Browse files
DOC: fix section heading hierarchy for Colab docs
1 parent d93e43c commit e261bd0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

doc/source/user_guide/io.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6524,7 +6524,6 @@ The files ``test.pkl.compress``, ``test.parquet`` and ``test.feather`` took the
65246524
Loading data in Google Colab notebooks
65256525
'''''''''''''''''''''''''''''''''''''''
65266526

6527-
65286527
Google Colab is a hosted Jupyter notebook environment. Since it runs remotely,
65296528
files must be explicitly uploaded or mounted before they can be read by pandas.
65306529

@@ -6541,9 +6540,8 @@ Files can be uploaded directly to the Colab runtime using ``google.colab.files``
65416540
import pandas as pd
65426541
df = pd.read_csv("data.csv")
65436542
6544-
65456543
Using Google Drive
6546-
~~~~~~~~~~~~~~~~~~
6544+
~~~~~~~~~~~~~~~~~
65476545

65486546
Google Drive can be mounted to make files available to the runtime:
65496547

@@ -6563,4 +6561,9 @@ Data hosted remotely can be read directly using a URL:
65636561
.. code-block:: python
65646562
65656563
import pandas as pd
6566-
df = pd.read_csv("https://raw.githubusercontent.com/pandas-dev/pandas/main/doc/data/air_quality_no2.csv")
6564+
6565+
url = (
6566+
"https://raw.githubusercontent.com/pandas-dev/pandas/main/"
6567+
"doc/data/air_quality_no2.csv"
6568+
)
6569+
df = pd.read_csv(url)

0 commit comments

Comments
 (0)