Mathew K Analytics

📊 Dataset · CSV

diamonds.csv dataset

Download diamonds.csv free (53,940 rows × 10 columns, 2.6 MB). Preview the rows and columns, load it in pandas in one line and practise with 1 Python lesson.

Preview (first rows)

caratcutcolorclaritydepthtablepricexyz
0.23IdealESI261.555.03263.953.982.43
0.21PremiumESI159.861.03263.893.842.31
0.23GoodEVS156.965.03274.054.072.31
0.29PremiumIVS262.458.03344.24.232.63
0.31GoodJSI263.358.03354.344.352.75
0.24Very GoodJVVS262.857.03363.943.962.48
0.24Very GoodIVVS162.357.03363.953.982.47
0.26Very GoodHSI161.955.03374.074.112.53

Columns

ColumnTypeMissingExample
caratdecimal00.23
cuttext0Ideal
colortext0E
claritytext0SI2
depthdecimal061.5
tabledecimal055.0
priceinteger0326
xdecimal03.95
ydecimal03.98
zdecimal02.43

Load it in Python

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