I want to generate a new column based on the function of another column and the row before the current row.
i.e.
NewColumn_{n} = OldColumn_{n} * 0.6 + NewColumn_{n-1} * 0.4
Is it possible I could do this without using iterrows
?
I saw this post: How to constuct a column of data frame recursively with pandas-python?
But I'm wondering if there is another function/package or tricks within Pandas?
Something like purrr
in R?