Importing Python Libraries

import pandas


pandas.read_csv('data/cereal.csv')
name mfr type calories ... shelf weight cups rating
0 100% Bran N Cold 70 ... 3 1.0 0.33 68.402973
1 100% Natural Bran Q Cold 120 ... 3 1.0 1.00 33.983679
2 All-Bran K Cold 70 ... 3 1.0 0.33 59.425505
... ... ... ... ... ... ... ... ... ...
74 Wheat Chex R Cold 100 ... 1 1.0 0.67 49.787445
75 Wheaties G Cold 100 ... 1 1.0 1.00 51.592193
76 Wheaties Honey Gold G Cold 110 ... 1 1.0 0.75 36.187559

77 rows × 16 columns

import pandas as pd 
import altair as alt


pd.read_csv('data/cereal.csv')
name mfr type calories ... shelf weight cups rating
0 100% Bran N Cold 70 ... 3 1.0 0.33 68.402973
1 100% Natural Bran Q Cold 120 ... 3 1.0 1.00 33.983679
2 All-Bran K Cold 70 ... 3 1.0 0.33 59.425505
... ... ... ... ... ... ... ... ... ...
74 Wheat Chex R Cold 100 ... 1 1.0 0.67 49.787445
75 Wheaties G Cold 100 ... 1 1.0 1.00 51.592193
76 Wheaties Honey Gold G Cold 110 ... 1 1.0 0.75 36.187559

77 rows × 16 columns

from pandas import read_csv


read_csv('data/cereal.csv')
name mfr type calories ... shelf weight cups rating
0 100% Bran N Cold 70 ... 3 1.0 0.33 68.402973
1 100% Natural Bran Q Cold 120 ... 3 1.0 1.00 33.983679
2 All-Bran K Cold 70 ... 3 1.0 0.33 59.425505
... ... ... ... ... ... ... ... ... ...
74 Wheat Chex R Cold 100 ... 1 1.0 0.67 49.787445
75 Wheaties G Cold 100 ... 1 1.0 1.00 51.592193
76 Wheaties Honey Gold G Cold 110 ... 1 1.0 0.75 36.187559

77 rows × 16 columns

Let’s apply what we learned!