Snippet 1
# importing pandas as pd
import pandas as pd
# Making data frame from the csv file
df = pd.read_csv("nba.csv")
# To find the correlation among
# the columns using kendall method
df.corr(method ='kendall')
Snippet 2
# To find the correlation among
# the columns using pearson method
df.corr(method ='pearson')
Copyright © Code Fetcher 2020