I am trying to forward fill values in a Deedle C# data frame, like the equivalent of using the pandas.ffill() function in python. The forward fill in pandas, allows for forward filling at both row and column indexes. I want do the same in Deedle, to take the nearest non missing value on the same row but from a different column, so across rows, which is very simple in python and pandas. I'm new to both C# and the Deedle library, and all I can find in the documentation is how to forward fill values within a series not across a data frame. Any help is greatly appreciated, I'm new to this, and I can't seem to find any substantial examples for this library anywhere.
This is an example of my data frame and I am trying to forward fill the values across the rows. So, the filled value for the missing value in col3 would become the last value in same row of col2 etc.
-------- rawDF ------
col1 col2 col3
AAA BBB
CCC DDD EEE
FFF
BBB AAA
DDD CCC
EEE FFF
AAA
BBB CCC
AAA
FFF AAA
DDD
The examples which are provided in the Deedle documentation for both C# and F#, only fill the values within a series as shown. If I attempt to FillMissing(); across the data frame I get nothing returned at all.
//Fill with previous available value in the series
var fillFwd = col2.FillMissing(Direction.Forward);
fillFwd.Print();
//Fill with the next available value
var fillBwd = col2.FillMissing(Direction.Backward);
fillBwd.Print()
---- nothing happens with the following ----
//forward fill all values in the DF
rawDF.FillMissing(Direction.Forward);
rawDF.Print();
//backward fill all values in the DF
//fill values in the DF with a constant value
rawDF.FillMissing(0);
rawDF.Print();