Lesson 3 of 11 · 2 min
Step 1 — Load and Overview
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
df = pd.read_csv("titanic.csv")
print(df.shape) # Output: (891, 12)
df.head() # first 5 rows
df.info() # dtypes + non-null counts
df.describe() # count, mean, std, min, 25%, 50%, 75%, max
df.dtypes # data type per column
df.columns # column names list