January 2020
Beginner to intermediate
372 pages
10h
English
First, let's import the necessary Python libraries:
import pandas as pdimport matplotlib.pyplot as plt
data = pd.read_csv('titanic.csv')data.dtypes
The variable types are as follows:
pclass int64 survived int64 name object sex object age float64 sibsp int64 parch int64 ticket object fare float64 cabin object embarked object boat object body float64 home.dest object dtype: object
Read now
Unlock full access