Course Name: Python for Trading: Basic, Section No: 8, Unit No: 15, Unit type: Exercise
The question is as follows: In this exercise, we will learn how to run a statistical function on a particular column of a data frame
Instructions
Use the pandas corr() function to calculate the correlation between the close prices of TCS and INFY.
Line 1:
LHS:
Create a my_corr variable
RHS:
Use the Close Price columns of infy and tcs dataframes to calcualte the correlation
But in the Output, there's no column named "Close Price". Can someone please explain?