How to Load data on Kaggle Notebook?

Before showcasing your awesome data science project to Kaggle, please make sure that the dataset is successfully loaded on Kaggle Notebook.

You have two options:

The first one would be selecting existed dataset or uploading your own dataset. ( File-> Add or upload data)

and then use the following code to figure where your dataset is

import os
for dirname, _, filenames in os.walk('/kaggle/input'):
for filename in filenames:
print(os.path.join(dirname, filename))


df = pd.read_csv("/kaggle/input/dataset/dataset.csv")

Written by

Machine Learning / Deep Learning / Python / Flutter

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store