I am trying to get the average, mean, max and min temperature and humidity form a text file. This text file is capturing everyday data of temp & Humidity. I am facing the problem with the formats of the data which are as follows:
2017-05-02 17:31:13 24.00,49.00
2017-05-02 17:32:13 24.00,49.00
2017-05-02 17:33:13 24.00,49.00
2017-05-02 17:34:14 24.00,49.00
2017-05-02 17:35:14 24.00,49.00
2017-05-02 17:36:14 24.00,49.00
2017-05-02 17:37:14 24.00,49.00
2017-05-02 17:38:14 24.00,49.00
here, I am not able to split the columns properly as there are many spliters. I can calculate average and all, but first the program should read the column of temp & humidity.
Data Description: 1st column: Date 2nd column: time 3rd column: Temp 4th column: Humidity
Can someone please help me to read the both temp and humidity properly, so that I can calculate average and all.