Jan-06-2021, 09:49 PM
I've tried using the function like this:
df.apply(lambda row: custom_hurst(df), axis=1)
Output:1983-03-30 0.682463
1983-03-31 0.682463
1983-04-04 0.682463
1983-04-05 0.682463
1983-04-06 0.682463
2020-12-29 0.682463
2020-12-30 0.682463
2020-12-31 0.682463
2021-01-04 0.682463
2021-01-05 0.682463
but as you see, the function is inputting the same 365 rows of the df. How would I adjust the code so that it rolls with the dates instead of being static?