I am currently trying to use pandas to read what is basically a csv file (but officially .dat format) and plot the data inside.
def IofQ(folderout) :
Iofq = pd.read_csv("{}\Iofq.dat".format(folderout), sep='\t')
Graph = Iofq.plot()
return Iofq
IofQ("E:\ECOLE\Stage_L2C_Backup\ESA_COLIS\25_07_2023_101output\R01154_long\OutputSALS\dunno")
However, when I call this function, I get the error :
OSError: [Errno 22] Invalid argument: 'E:\\ECOLE\\Stage_L2C_Backup\\ESA_COLIS\x15_07_2023_101output\\R01154_long\\OutputSALS\\dunno\\Iofq.dat'
As you can see, the date 25_07_2023
is read x15_07
by the system and I have no idea why.
On top of this, if the path was wrong, the error would something like could not find directory
I guess.
Does someone know where such an error comes from ?