Hello,
I am used to using Pandas ffill function and trying to figure out how to do the same here.
I have a dataframe that looks like this:
Date Stock GDP
0: 2021-10-01 45301.73 24002.815
1: 2021-10-08 45244.34 NaN
2: 2021-10-15 45677.43 NaN
3: 2021-10-22 47000.43 NaN
4: 2021-10-29 47450.01 NaN
5: 2021-11-05 48330.86 NaN
6: 2021-11-12 48497.45 NaN
7: 2021-11-19 48638.28 NaN
8: 2021-11-26 48211.43 NaN
9: 2021-12-03 47034.66 NaN
The GDP data is only quarterly, so Id like to fill those rows with the data from index 0.
How can I achieve the same using gota
Hello, I am used to using Pandas
ffill
function and trying to figure out how to do the same here. I have a dataframe that looks like this:The GDP data is only quarterly, so Id like to fill those rows with the data from index 0. How can I achieve the same using gota