How to Load data on Kaggle Notebook?
1 min readOct 1, 2020
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))
finally
df = pd.read_csv("/kaggle/input/dataset/dataset.csv")
df.head(10)