Last active
January 20, 2019 19:34
-
-
Save sanjurm16/04caced18bb3d4935a4b6142952c2c9f 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
train_df.select("age").describe().show() | |
train_df.where("age is null").count() | |
#177 values out of the 714 values are null. | |
#replacing the null values with the mean age value | |
train_avg_age_df = train_df.na.fill({'age': 29}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment