Reputation: 287
If I have a DataFrame like:
date value
2015-01-01 1.1
2015-01-01 1.2
2015-01-01 1.1
2015-01-01 1.1
I want to get:
date value compound value
2015-01-01 1.1 1.1
2015-01-01 1.2 1.1*1.2
2015-01-01 1.1 1.1*1.2*1.1
2015-01-01 1.1 1.1*1.2*1.1*1.1
Is there any simple solution for this in pandas?
Upvotes: 2
Views: 4202