Guest User

Untitled

a guest
Dec 18th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import pandas as pd
  2. from scipy import stats
  3. import numpy as np
  4.  
  5. #Read the data into a dataframe
  6. df = pd.read_csv("World Cup 2018.csv")
  7.  
  8. index2 = df.loc[df['start_time']]
  9. print(index2['home_score'])
  10.  
  11. Test = numpy.corrcoef(index2.start_time, index2.home_score)[0, 1]
  12. print(Test)
Add Comment
Please, Sign In to add comment