January 2020
Beginner to intermediate
432 pages
11h 24m
English
Execute the following steps to load a dataset into Python.
import pandas as pd
!head -n 5 credit_card_default.csv
The output looks like this:

df = pd.read_csv('credit_card_default.csv', index_col=0, na_values='')
The DataFrame has 30,000 rows and 24 columns.
X = df.copy()y = X.pop('default_payment_next_month')
After running this block of code, X no longer contains the target column.
Read now
Unlock full access