Data Import
Import CSV & Excel files from local directory
Import csv files from local directory pandas tutorial: pandas.read_csv
#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()Import Excel files pandas tutorial: pandas.read_excel
#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 Name
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?
