January 2020
Beginner to intermediate
372 pages
10h
English
Let's begin by importing the necessary libraries and getting the data ready:
import pandas as pdimport matplotlib.pyplot as plt
data = pd.read_csv('car.data', header=None)data.columns = ['buying', 'maint', 'doors', 'persons', 'lug_boot', 'safety', 'class']data.head()
We get the following output when the code is executed from a Jupyter Notebook:

Read now
Unlock full access