Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #calculate correlation matrix using inbuilt pandas function
- correlation_matrix = log_returns_df.corr()
- #show first five rows of the correlation matrix
- correlation_matrix.head()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement