January 2020
Beginner to intermediate
372 pages
10h
English
Let's begin by importing the necessary Python libraries:
import pandas as pdimport numpy as npimport matplotlib.pyplot as plt
cols = ['GENDER', 'RFA_2', 'MDMAUD_A', 'RFA_2', 'DOMAIN', 'RFA_15']data = pd.read_csv('cup98LRN.txt', usecols=cols)
data = data.replace(' ', np.nan)data.head()
After loading the data, this is what the output of head() looks like when we run it from a Jupyter Notebook:

Read now
Unlock full access