Mounting Google Drive in Google Colab
Pranesh Chowdhury
Posted on March 22, 2024
Connect Google Drive to Google Colab.
Follow these steps:
- First, upload the CSV file to Google Drive.
- Open a Colab notebook and write the code.
- Connect to Google Drive by granting access to your Google account.
- Find the file in Google Drive, copy its path, and paste it into the code.
Run this code:
This code will be automatically generated when you mount the drive. You just need to run this code.
from google.colab import drive
drive.mount('/content/drive')
Access file:
df = pd.read_csv("paste the google drive path")
~ Thank You 🩵⭐
💖 💪 🙅 🚩
Pranesh Chowdhury
Posted on March 22, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.