May-02-2020, 06:49 AM
Hi,
I have below code, I am passing the file path and I want to read data. I use the below code, but it's not reading anything.
I have below code, I am passing the file path and I want to read data. I use the below code, but it's not reading anything.
import pandas as pd import os class pythonTraining(): def mydata(self, filepath): Path = "D:\Data" print(os.path.join(Path, filepath, "outsummary.csv")) full_filepath = os.path.join(Path, filepath, "outsummary.csv") #print("The full_filepath is: "+str(full_filepath)) mydata = pd.read_csv(full_filepath) x = pythonTraining() x.mydata("PythonCodes")Kindly help, how to modify my script