Data Import
Import CSV & Excel files from local directory
#Uplocad csv file from your local directory
from google.colab import files
uploaded = files.upload()
import pandas as pd
df = pd.read_csv('FILENAME.csv') #The filename of the uplpaded csv file
#df.shape
df.head()#Uplocad Excel file from your local directory
from google.colab import files
uploaded = files.upload()
import pandas as pd
df = pd.read_excel('FILENAME.xlsx') #The filename of the uplpaded csv file
#df.shape
df.head()Import data from URL
Google Drive Import
Read data by Google Sheets ID
Read CSV file from Google Drive - by sharing link
Read CSV file from Google Drive - by mounting Google Drive
Last updated
Was this helpful?
