First time using Google Colab. I have used a Kaggle API and I have the data loaded into Google Colab, but I can't seem to open it via pandas. I right clicked on the file and copied path. I then ran the following code:
import pandas as pd train = pd.read_csv("content/train.csv") test = pd.read_csv('content/test.csv') The error code that I am getting:
FileNotFoundError: File b'content/train.csv' does not exist Here is the code for everything I have done leading up to this error:
!pip install kaggle from google.colab import files files.upload() #Uploaded my kaggle.json file !pip install -q kaggle !mkdir -p ~/.kaggle !cp kaggle.json ~/.kaggle/ !kaggle competitions download -c microsoft-malware-prediction #Unzip the files: !7z x train.csv.zip !7z x sample_submission.csv.zip !7z x test.csv.zip #remove the zipped data !rm train.csv.zip !rm sample_submission.csv.zip !rm test.csv.zip import pandas as pd train = pd.read_csv("content/train.csv") test = pd.read_csv('content/test.csv') print('read') Any help would be great!
/in your path? i.e.,/content/...rather thancontent/....