📊 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.
- Size2.6 MB
- Rows53,940
- Columns10
- Used in1 lesson
Preview (first rows)
| carat | cut | color | clarity | depth | table | price | x | y | z |
|---|---|---|---|---|---|---|---|---|---|
| 0.23 | Ideal | E | SI2 | 61.5 | 55.0 | 326 | 3.95 | 3.98 | 2.43 |
| 0.21 | Premium | E | SI1 | 59.8 | 61.0 | 326 | 3.89 | 3.84 | 2.31 |
| 0.23 | Good | E | VS1 | 56.9 | 65.0 | 327 | 4.05 | 4.07 | 2.31 |
| 0.29 | Premium | I | VS2 | 62.4 | 58.0 | 334 | 4.2 | 4.23 | 2.63 |
| 0.31 | Good | J | SI2 | 63.3 | 58.0 | 335 | 4.34 | 4.35 | 2.75 |
| 0.24 | Very Good | J | VVS2 | 62.8 | 57.0 | 336 | 3.94 | 3.96 | 2.48 |
| 0.24 | Very Good | I | VVS1 | 62.3 | 57.0 | 336 | 3.95 | 3.98 | 2.47 |
| 0.26 | Very Good | H | SI1 | 61.9 | 55.0 | 337 | 4.07 | 4.11 | 2.53 |
Columns
| Column | Type | Missing | Example |
|---|---|---|---|
carat | decimal | 0 | 0.23 |
cut | text | 0 | Ideal |
color | text | 0 | E |
clarity | text | 0 | SI2 |
depth | decimal | 0 | 61.5 |
table | decimal | 0 | 55.0 |
price | integer | 0 | 326 |
x | decimal | 0 | 3.95 |
y | decimal | 0 | 3.98 |
z | decimal | 0 | 2.43 |
Load it in Python
import pandas as pd
df = pd.read_csv("diamonds.csv")
df.head()
