Dear Community,
I am dealing with some data preprocessing in order to fill some Missing Values on my Dataset. The problem is that I have two attributes with different sampling (i.e. one of them has data hourly, and the other one just daily). So, I have this dataset:
date atr1 atr2
d1_09:00 5 ?
d1_10:00 6 ?
d1_11:00 5 20
d1_12:00 5 ?
...
d2_09:00 7 ?
d2_10:00 6 ?
d2_11:00 5 13
d2_12:00 6 ?
I would like to be able to take a value of attr2 and use it to fill MV until the next value is found. So, this example would be end somehow like:
date atr1 atr2
d1_09:00 5 ?
d1_10:00 6 ?
d1_11:00 5 20
d1_12:00 5 20
...
d2_09:00 7 20
d2_10:00 6 20
d2_11:00 5 13
d2_12:00 6 13
I guess I should be using some "Loop" operator, but so far I couldn't achieve what I am looking for.
Anyone dealing with similar issues?
Thanks in advance,
Iker