Skip to content

Instantly share code, notes, and snippets.

@MLWhiz
Created April 19, 2019 15:31
Show Gist options
  • Save MLWhiz/9bbc95d2bfde5d6fed5bce837eca6ae5 to your computer and use it in GitHub Desktop.
Save MLWhiz/9bbc95d2bfde5d6fed5bce837eca6ae5 to your computer and use it in GitHub Desktop.
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
%matplotlib inline
# We dont Probably need the Gridlines. Do we? If yes comment this line
sns.set(style="ticks")
player_df = pd.read_csv("../input/data.csv")
numcols = [
'Overall',
'Potential',
'Crossing','Finishing', 'ShortPassing', 'Dribbling','LongPassing', 'BallControl', 'Acceleration',
'SprintSpeed', 'Agility', 'Stamina',
'Value','Wage']
catcols = ['Name','Club','Nationality','Preferred Foot','Position','Body Type']
# Subset the columns
player_df = player_df[numcols+ catcols]
# Few rows of data
player_df.head(5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment