I want to import data from kaggle to my Notebook while not having to download it (So if i share my .ipynb u only need to run the code and it will download it from the internet), but i can't figure out if it is even possible and which link to copy. Here is the kaggle website:
https://www.kaggle.com/datasets/kukuroo3/body-performance-data/data?select=bodyPerformance.csv
data = pd.read_csv('link here')
I tried copying the download button link, but it doesn't work and says: ParserError: Error tokenizing data. C error: Expected 1 fields in line 9, saw 2
you can head into the dataset page and click on new notebook at the top right corner
open any notebook and click on add data at the right menue
not recommended, since each person that opens the ipynb will have to upload their own token first.
when using colab first download your kaggke json key and do the following steps
create new token
button in the api section, click on it to download your token.
! pip install kaggle
from google.colab import files
files.upload()
!kaggle datasets download -d [user/data-name]
in our example here [user/data-name]
is kukuroo3/body-performance-data