Jan-22-2025, 09:09 AM
I've got the following data (see attachement) from a testing rig and can't change the output I get.
I want to name the first column, but can't figure out how.
I'm not talking about the index, but about date & time.
I've tried using the "name" given ('Unnamed: 0'), but df.rename does not work for me.
I've tried pulling the column names with df.columns, but can't change the 'Unnamed: 0' string without destroying my whole index.
I've tried accessing it with [i]iloc[i], but can't figure out how to access the header before row 0.
Also attached is a random .csv as example with the read_csv I use:
df_Data = pd.read_csv(path_Data, sep=';', encoding = "ISO-8859-1", parse_dates=[0], date_format="%d.%m.%Y %H:%M")
Any help is appreciated. Thanks in advance.
I want to name the first column, but can't figure out how.
I'm not talking about the index, but about date & time.
I've tried using the "name" given ('Unnamed: 0'), but df.rename does not work for me.
I've tried pulling the column names with df.columns, but can't change the 'Unnamed: 0' string without destroying my whole index.
I've tried accessing it with [i]iloc[i], but can't figure out how to access the header before row 0.
Also attached is a random .csv as example with the read_csv I use:
df_Data = pd.read_csv(path_Data, sep=';', encoding = "ISO-8859-1", parse_dates=[0], date_format="%d.%m.%Y %H:%M")
Any help is appreciated. Thanks in advance.
Attached Files