Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to fill forward? #189

Open
crhuber opened this issue Jun 22, 2022 · 0 comments
Open

How to fill forward? #189

crhuber opened this issue Jun 22, 2022 · 0 comments

Comments

@crhuber
Copy link

crhuber commented Jun 22, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant