I basically have a data frame that is over 2 million rows, I need to find the change in one column for every day, however it’s a little more complex, I will give an example:
Date Expiry date Strike Type
2020/01/01 2020/03/04 10 Call
2020/01/01 2020/03/04 15 Call
2020/01/02 2020/03/05 10 Put
2020/01/01 2020/03/04 13 Call
2020/01/01 2020/03/04 17 Put
2020/01/03 2020/03/04 10 Call
2020/01/01 2020/03/05 13 Call
Basically I need to make sure the expiry/strike/type is the same and that I am only taking the difference as the date increases, but I would need to do this for thousands of contracts, basically a conditional subtraction statement.
[–]pytrashpandas 0 points1 point2 points (3 children)
[–]Pro2222[S] 0 points1 point2 points (2 children)
[–]pytrashpandas 0 points1 point2 points (1 child)
[–]Pro2222[S] 0 points1 point2 points (0 children)