File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff 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-
65286527Google Colab is a hosted Jupyter notebook environment. Since it runs remotely,
65296528files 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
65486546Google 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)
You can’t perform that action at this time.
0 commit comments