From af0d0a645db68b957d3d5c2836403b91df67cd7e Mon Sep 17 00:00:00 2001 From: akashsannala Date: Wed, 22 Oct 2025 13:51:21 +0530 Subject: [PATCH] Explain how to load data in Google Colab --- doc/source/user_guide/io.rst | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 5b25462568cfa..a3af0c2cec9ac 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -6598,3 +6598,30 @@ The files ``test.pkl.compress``, ``test.parquet`` and ``test.feather`` took the 24009288 Oct 10 06:43 test_fixed_compress.hdf 24458940 Oct 10 06:44 test_table.hdf 24458940 Oct 10 06:44 test_table_compress.hdf + + +Connect To Google Colab +-------------------------- + +To uploade files in `Google Colab `__, you have a `lot of options +`__. A few recommended options: + + +Direct upload +'''''''''''''' +Fewer steps, but your file(s) will disappear when your session ends. + +1. In the Google Colab sidebar (mostly present in the left side), click the ``Files`` icon. +2. Click the ``upload`` button. +3. Select your file and its done! + +Uploading from Local files using Python +''''''''''''''''''''''''''''''''''''''' +.. code-block:: python + :linenos: + + from google.colab import files + uploaded = files.upload() + for fn in uploaded.keys(): + print('User uploaded file "{name}" with length {length} \ + bytes'.format(name=fn, length=len(uploaded[fn])))