Dear All,
I am trying to propagate the last valid observation (e.g. not null) to the null
values in a dataset.
Below I reported the partial solution:
Dataset tmp800=tmp700.select("uuid", "eventTime", "Washer_rinseCycles");
WindowSpec wspec=
Window.partitionBy(tmp800.col("uuid")).o
Dear All,
I need to apply a dataset transformation to replace null values with the
previous Non-null Value.
As an example, I report the following:
from:
id | col1
-
1 null
1 null
2 4
2 null
2 null
3 5
3 null
3 null
to:
id | col1
-
1 null
1 null
2 4
2