1# It will prompt you to select a file. Click on “Choose Files” then select and upload the file. Wait for the file to be 100% uploaded.
2
3from google.colab import files
4uploaded = files.upload()
5
6# To store dataset in a Pandas Dataframe
7import io
8df2 = pd.read_csv(io.BytesIO(uploaded['Filename.csv']))
1from google.colab import files
2import io
3uploaded = files.upload()
4df2 = pd.read_csv('Filename.csv')# Dataset is now stored in a Pandas Dataframe