I am trying to calculate the correlation coefficient like how can I calculate correlation between all possible rows
My code import pandas as pd
d = {'Name': ['A', 'B','C'], 'v1': [1,3, 4], 'v2': [3,2, 4], 'v3': [3,9 ,1]} df = pd.DataFrame(data=d) result = df.T.corr().unstack().reset_index(name="corr") but it shows the error IndexError: list index out of range.
Thank you for your assistance