Skip to content

Instantly share code, notes, and snippets.

@drigols
Created September 18, 2020 20:47
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 drigols/bdce94bfab6feb013ab8c3e2a8d9dfc6 to your computer and use it in GitHub Desktop.
Save drigols/bdce94bfab6feb013ab8c3e2a8d9dfc6 to your computer and use it in GitHub Desktop.
import pandas as pd
pd.set_option('display.max_columns', 18)
data = pd.read_csv('../datasets/athlete_events.csv')
dt = data.dropna()
print("Full sample: {0}".format(data.shape))
print("Sample without NaN: {0}".format(dt.shape))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment