Created
September 18, 2020 21:02
-
-
Save drigols/ead6b1c6e87755d5130655a85d74fea4 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
import pandas as pd | |
pd.set_option('display.max_columns', 18) | |
data = pd.read_csv('../datasets/athlete_events.csv') | |
data['Height'] = data['Height'].fillna(data['Height'].mean()) | |
data['Weight'] = data['Weight'].fillna(data['Weight'].mean()) | |
print(data[['Height', 'Weight']].head(20)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment