Hi,
Im having a hard time in creating a script with the following conditions below. I have a csv file generated which is updated every 5 mins and it contains a timestamp in it. for example:
time data
00:00 1
00:05 0
00:10 6
00:15 3
however, there is a time that the csv file is not updated this means that a certain line will be skipped.
time data
00:00 1
00:10 7
00:25 8
do any of you guys have an idea on how to validate the data in such a way that if a time is skipped, it will automaticall fill up the missing time?
what i have in mind is that it will return the following:
time data
00:00 1
00:05 0 -turns the missing data into zero value
00:10 7
00:15 0
00:20 0
00:25 8
what i am trying right now is to create a file that contains the correct time incrementation (00:00 / 00:05 / 00:10 .. so on), and then compare the two, however, i dont know where to start...
Thank you again!