In [ ]:
# Tipo di struttura dati
print(f"Data type: {type(data)}\n")

# Visualizzazione dei tipi di dati
print(f"{data.dtypes}\n")

# Dimensione
print("Number of rows: ", data.shape[0])
print("Number of columns: ", data.shape[1])
Data type: <class 'pandas.core.frame.DataFrame'>

PassengerId      int64
Survived         int64
Pclass           int64
Name            object
Sex             object
Age            float64
SibSp            int64
Parch            int64
Ticket          object
Fare           float64
Cabin           object
Embarked        object
dtype: object

Number of rows:  891
Number of columns:  12