-
-
Save lmiller1990/64a2b3b36fbd599c4a4f829fd37da753 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def load_and_clean_data(): | |
df = pd.read_csv("data.csv") | |
df.team = df.team.str.lower() | |
df.league = df.league.str.lower() | |
return df.replace({ "1": 1.0, "0": 0.0, 1: 1.0, 0: 0.0, 'Blue': -1, 'Red': 1.0 }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment