I am looking to read a csv file present in my local drive ex: C:\Users\Studyfolder\abc.csv My python libraries are installed in another directory - a path created for python 3 libraries ex:C:\Users\Anaconda3_2\envs\py3
On Anaconda Prompt- i have set my cd path as - C:\Users\Anaconda3_2\envs\py3 since naturally, all python libraries will be installed there
On Jupyter Notebook, I am looking to read the csv file to extract the dataframe. For definite reason when i run the command df = pd.read_csv('abc.csv'), the file wouldn't be found under the path cd'd on Anaconda prompt
Should i be saving all my data files in the same path where python libraries are installed OR there is a better way i can still read the file without having to save it in the cd path shown above?
P.S New to Jupyter notebooks and Python in general
import pandas as pd
df = pd.read_csv('abc.csv')
df.head()
FileNotFoundError Traceback (most recent call last) in 1 # load abc data into data frame ----> 2 df = pd.read_csv('abc.csv')
pd.read_csv(r'C:\Users\Studyfolder\abc.csv')