Mathew K Analytics

📊 Dataset · CSV

mpg.csv dataset

Download mpg.csv free (398 rows × 9 columns, 20.7 KB). Preview the rows and columns, load it in pandas in one line and practise with 2 Python lessons.

Preview (first rows)

mpgcylindersdisplacementhorsepowerweightaccelerationmodel_yearoriginname
18.08307.0130.0350412.070usachevrolet chevelle malibu
15.08350.0165.0369311.570usabuick skylark 320
18.08318.0150.0343611.070usaplymouth satellite
16.08304.0150.0343312.070usaamc rebel sst
17.08302.0140.0344910.570usaford torino
15.08429.0198.0434110.070usaford galaxie 500
14.08454.0220.043549.070usachevrolet impala
14.08440.0215.043128.570usaplymouth fury iii

Columns

ColumnTypeMissingExample
mpgdecimal018.0
cylindersinteger08
displacementdecimal0307.0
horsepowerdecimal6130.0
weightinteger03504
accelerationdecimal012.0
model_yearinteger070
origintext0usa
nametext0chevrolet chevelle malibu

Load it in Python

import pandas as pd
df = pd.read_csv("mpg.csv")
df.head()