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
cols = ['AGE', 'NUMCHLD', 'INCOME', 'WEALTH1', 'MBCRAFT', 'MBGARDEN', 'MBBOOKS', 'MBCOLECT', 'MAGFAML','MAGFEM', 'MAGMALE']
data = pd.read_csv('cup98LRN.txt', usecols=cols)data.head()
After loading the dataset, this is how the output of head() looks like when we run it from a Jupyter Notebook:

data.isnull().sum()
The number ...
Read now
Unlock full access