Aug-17-2023, 08:52 PM
Hello! I have a .csv file and by using the following code:
How can I get the same result if the .csv does not have headers ('TimeStamp ', 'sensor1_measurements ', 'sensor2_measurements ')?
I tried google searching and testing code but nothing worked... Any ideas???
my_dataset = pandas_package.read_csv("MyMeasurements.csv") my_dataset["date"] = pandas_package.to_datetime(my_dataset["DATE"]) TimeStamp = my_dataset["date"] sensor1_measurements = my_dataset["sensor1"] sensor2_measurements = my_dataset["sensor2"]And I get correctly each column of the .csv assigned to each variable. The problem is the following:
How can I get the same result if the .csv does not have headers ('TimeStamp ', 'sensor1_measurements ', 'sensor2_measurements ')?
I tried google searching and testing code but nothing worked... Any ideas???