Python Forum
how to solve the 'NO SUCH DIRECTORY OR FILE' in pandas, python - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Data Science (https://python-forum.io/forum-44.html)
+--- Thread: how to solve the 'NO SUCH DIRECTORY OR FILE' in pandas, python (/thread-26627.html)

Pages: 1 2


RE: how to solve the 'NO SUCH DIRECTORY OR FILE' in pandas, python - nnk - May-08-2020

I tried this and it worked for me.... But you make sure your file is in correct path...

import pandas as pd
df = pd.read_csv(r'c:\Users\Admin\Downloads\weather.csv')
print("The size of the data frame is: ", df.shape)