Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- titanic.fare.plot(figsize = (12,8))
- titanic.age.plot(figsize = (12,8))
- plt.show()
- mean_age = titanic.age.mean()
- mean_fare = titanic.fare.mean()
- std_age = titanic.age.std()
- std_fare = titanic.fare.std()
- titanic["age_z"] = round((titanic.age-mean_age) / std_age,2)
- titanic["fare_z"] = round((titanic.fare-mean_fare) / std_fare,2)
- round(titanic.describe(),2)
- titanic.fare_z.plot(figsize = (12,8))
- titanic.age_z.plot(figsize = (12,8))
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement