Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Apply the returns transformation
- returns_df = stocks_df.apply(lambda x: x / x[0])
- returns_df.head()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement