Firstly ,executing below cell should create an inline "Choose Files" button
from google.colab import files
uploaded = files.upload()
After selecting your file(s), uploaded will be a dictionary of keys (the file names) and values (the encoded file objects). To decode the files for a library such as Pandas, try
import pandas as pd
df_filename = pd.read_csv('filename.csv')
Or Upload from below navigation
from google.colab import files
uploaded = files.upload()
After selecting your file(s), uploaded will be a dictionary of keys (the file names) and values (the encoded file objects). To decode the files for a library such as Pandas, try
import pandas as pd
df_filename = pd.read_csv('filename.csv')
Or Upload from below navigation
No comments:
Post a Comment