Skip to content

Instantly share code, notes, and snippets.

@liannewriting
Created January 18, 2020 22:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liannewriting/d6cfd7860a5292fbc587a0dab9c9836a to your computer and use it in GitHub Desktop.
Save liannewriting/d6cfd7860a5292fbc587a0dab9c9836a to your computer and use it in GitHub Desktop.
sports_betting202001
import pandas as pd
import numpy as np
from sklearn.metrics import accuracy_score
from sklearn.linear_model import Ridge
# load the data.
df = pd.read_csv('hockey_games.csv', skiprows=1, names=['date', 'visitor', 'visitor_goals', 'home', 'home_goals'])
# make the date column into a date format.
df['date'] = pd.to_datetime(df['date'], format='%Y-%m-%d')
@maxwellorourke
Copy link

why do i get an error when including both from sklearn

@liannewriting
Copy link
Author

liannewriting commented Dec 11, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment