Actually, I defined my path as:
#define file name and write to webservicedata.csv import pandas as pd my_path='D:\pythonCodes\myproject' f=open('webservicedata.csv','w',newline='') f.write(data) f.close() #read partial data from above file and write into another file in the same director(absolute directory) df=pd.read_csv("D:\pythonCodes\myproject\webservicedata.csv") df1=df[:10] filename='config_file_data02' df1.to_csv(my_path,filename,index=False,header=False)I want to trace the full file name match the partial file name as "config_file" and its full path.