Skip to content

Instantly share code, notes, and snippets.

@MLWhiz
Created April 19, 2019 15:34
Show Gist options
  • Save MLWhiz/7c66ca913b863f3d5d82dcdb3d9840b0 to your computer and use it in GitHub Desktop.
Save MLWhiz/7c66ca913b863f3d5d82dcdb3d9840b0 to your computer and use it in GitHub Desktop.
filtered_player_df = player_df[(player_df['Club'].isin(['FC Barcelona', 'Paris Saint-Germain',
'Manchester United', 'Manchester City', 'Chelsea', 'Real Madrid','FC Porto','FC Bayern München'])) &
(player_df['Nationality'].isin(['England', 'Brazil', 'Argentina',
'Brazil', 'Italy','Spain','Germany']))
]
# Single line to create pairplot
g = sns.pairplot(filtered_player_df[['Value','SprintSpeed','Potential','Wage']])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment