@@ -48,40 +48,39 @@ The pandas I/O API is a set of top level ``reader`` functions accessed like
4848Google Colab
4949^^^^^^^^^^^^
5050
51- Google Colab provides several ways to load data into pandas DataFrames:
51+ Google Colab provides several ways to load data into pandas DataFrames.
5252
5353**Upload files directly **
5454.. code-block :: python
5555
5656 from google.colab import files
5757 uploaded = files.upload()
58- df = pd.read_csv(' your_file.csv' )
58+ df = pd.read_csv(" your_file.csv" )
5959
6060 **Mount Google Drive **
6161.. code-block :: python
6262
6363 from google.colab import drive
64- drive.mount(' /content/drive' )
65- df = pd.read_csv(' /content/drive/MyDrive/your_file.csv' )
64+ drive.mount(" /content/drive" )
65+ df = pd.read_csv(" /content/drive/MyDrive/your_file.csv" )
6666
6767 **URLs work normally **
6868.. code-block :: python
6969
70- df = pd.read_csv(' https://example.com/data.csv' )
70+ df = pd.read_csv(" https://example.com/data.csv" )
7171
7272 **Save/download **
7373.. code-block :: python
7474
75- df.to_csv(' /content/drive/MyDrive/output.csv' , index = False )
76- files.download(' output.csv' )
75+ df.to_csv(" /content/drive/MyDrive/output.csv" , index = False )
76+ files.download(" output.csv" )
7777
7878 Files in ``/content/ `` are temporary, so prefer saving to Google Drive if you need persistence.
7979
8080For more details on file handling in Colab, see the
8181`official Colab IO notebook <https://colab.research.google.com/notebooks/io.ipynb >`_.
8282
8383
84-
8584.. note ::
8685 For examples that use the ``StringIO `` class, make sure you import it
8786 with ``from io import StringIO `` for Python 3.
0 commit comments