shekhar pandey

import numpy as np
import pandas as pd

crosstab, pivot_table

titanic = pd.read_csv('https://raw.githubusercontent.com/shekhar270779/Learn_ML/main/datasets/Titanic.csv')titanic.head()
png

Cross Tabulation / Contingency table

pd.crosstab(titanic.Survived, titanic.Pclass)

--

--