Dataset Viewer
Auto-converted to Parquet Duplicate
Shape
stringclasses
11 values
Cut
stringclasses
4 values
Color
stringclasses
5 values
Clarity
stringclasses
6 values
Carat Weight
float64
1
9.38
Length/Width Ratio
float64
1
2.58
Depth %
float64
46.1
77
Table %
float64
51
78
Polish
stringclasses
3 values
Symmetry
stringclasses
3 values
Girdle
stringclasses
29 values
Culet
nullclasses
5 values
Length
float64
5.18
15.2
Width
float64
4.42
14.9
Height
float64
2.67
8.17
Price
int64
1.01k
39.5k
Type
stringclasses
3 values
Fluorescence
stringclasses
3 values
Cushion Modified
Ideal
F
VVS2
1.84
1.02
65.8
59
Excellent
Very Good
Medium to Thick
null
7.09
6.95
4.57
2,640
GIA Lab-Grown
null
Pear
null
E
VS1
1.2
1.65
62.5
58
Very Good
Very Good
Medium to Thick
null
9.64
5.86
3.66
1,070
GIA Lab-Grown
null
Oval
null
E
VS1
1.19
1.41
63.1
63
Very Good
Very Good
Medium to Thick
null
8.44
6
3.79
1,070
GIA Lab-Grown
null
Heart
null
D
IF
1
1.18
61.7
58
Excellent
Excellent
Slightly Thick to Very Thick
null
5.85
6.89
4.25
7,110
GIA
Faint
Radiant
null
H
VS1
1.01
1.35
69.4
66
Excellent
Very Good
Thick
null
6.8
5.05
3.5
3,050
GIA
null
Oval
null
E
VVS2
1
1.45
59.8
57
Excellent
Very Good
Slightly Thick to Thick
null
8.19
5.63
3.36
4,660
GIA
Faint
Marquise
null
E
VS1
1.1
2.02
61.4
61
Excellent
Excellent
Medium to Slightly Thick
null
11.01
5.46
3.35
1,100
IGI Lab-Grown
null
Heart
null
F
VS1
7.54
1.12
55.6
58
Excellent
Excellent
Medium to Slightly Thick
null
12.32
13.83
7.69
16,910
GIA Lab-Grown
null
Oval
null
G
VS2
1.01
1.4
63
63
Excellent
Very Good
Medium to Very Thick
null
7.89
5.64
3.55
4,480
GIA
null
Heart
null
E
VVS1
1.75
1.15
58.7
57
Excellent
Excellent
Medium to Very Thick
null
7.3
8.4
4.93
3,540
GIA Lab-Grown
null
Oval
null
F
VS2
1.01
1.46
61.6
59
Excellent
Excellent
Medium to Slightly Thick
null
8.22
5.62
3.46
4,610
GIA
null
Princess
Very Good
H
VS1
1
1
73.6
72
Very Good
Good
Slightly Thick
null
5.51
5.5
4.05
2,610
GIA
null
Radiant
null
H
VS1
1.06
1.12
69.5
66
Excellent
Very Good
Medium to Slightly Thick
null
6.08
5.41
3.76
3,650
GIA
null
Oval
null
D
VVS1
1.01
1.53
58.4
64
Excellent
Very Good
Medium to Thick
null
8.71
5.71
3.33
1,660
GIA Lab-Grown
null
Princess
Ideal
E
VS1
1.08
1.02
69.9
69
Excellent
Excellent
Medium
null
5.65
5.55
3.88
1,070
IGI Lab-Grown
null
Round
Ideal
E
VS1
1.59
1
60.9
59
Excellent
Excellent
Medium
null
7.52
7.55
4.59
1,850
IGI Lab-Grown
null
Pear
null
E
VS1
1.07
1.76
60.1
62
Excellent
Excellent
Medium to Slightly Thick
null
9.84
5.59
3.36
1,080
IGI Lab-Grown
null
Pear
null
F
VS2
1.01
1.56
59.4
56
Excellent
Excellent
Slightly Thick to Very Thick
null
8.69
5.58
3.31
4,320
GIA
null
Radiant
null
G
VS2
1.01
1.29
67.9
68
Excellent
Very Good
Thick to Very Thick
null
6.55
5.09
3.45
3,000
GIA
null
Princess
Ideal
E
VVS2
1.02
1.01
70.6
70
Excellent
Very Good
Medium to Slightly Thick
null
5.52
5.48
3.87
1,130
GIA Lab-Grown
null
Princess
Ideal
H
VS1
1
1
72.9
72
Excellent
Very Good
Slightly Thick to Very Thick
null
5.31
5.29
3.86
1,130
GIA
Faint
Radiant
null
H
VVS2
1.01
1.38
68.6
64
Excellent
Excellent
Medium to Slightly Thick
null
6.91
4.99
3.43
1,130
GIA
null
Cushion Modified
Ideal
F
IF
1.3
1.03
67.1
62
Excellent
Excellent
Slightly Thick to Very Thick
null
6.25
6.08
4.08
4,670
GIA Lab-Grown
null
Pear
null
D
VS1
1.01
1.6
59.9
60
Excellent
Excellent
Medium to Slightly Thick
null
9.13
5.69
3.41
1,100
IGI Lab-Grown
null
Pear
null
D
VS2
1.01
1.57
58.7
55
Very Good
Excellent
Medium to Thick
null
8.81
5.6
3.29
3,990
GIA
Medium
Princess
Ideal
D
VS1
1.03
1.02
72.2
67
Excellent
Excellent
Medium to Thick
null
5.63
5.54
4
1,110
GIA Lab-Grown
null
Radiant
null
F
VVS2
1.02
1.3
69.6
70
Excellent
Very Good
Thick
null
6.58
5.06
3.52
4,320
GIA
null
Marquise
null
E
IF
1.71
1.96
62.3
58
Excellent
Excellent
Medium to Very Thick
null
12.09
6.18
3.85
19,710
GIA
null
Round
Very Good
G
VS2
1
1
60.3
62
Excellent
Excellent
Slightly Thick to Thick
null
6.44
6.46
3.89
4,020
GIA
Faint
Princess
Ideal
E
VVS2
1.04
1.02
72.3
69
Excellent
Excellent
Medium
null
5.65
5.56
4.02
1,210
IGI Lab-Grown
null
Pear
null
H
VS2
1
1.66
62.4
60
Excellent
Excellent
Medium to Thick
null
9.04
5.46
3.41
3,840
GIA
Faint
Princess
Ideal
G
VS2
1.06
1.01
74
69
Excellent
Excellent
Very Thick
null
5.47
5.43
4.02
4,220
GIA
null
Round
Excellent
E
VS1
1.6
1
62
57
Very Good
Excellent
Medium to Slightly Thick
null
7.48
7.49
4.64
1,800
GIA Lab-Grown
null
Radiant
null
F
VVS2
1.03
1.42
68.7
61
Excellent
Excellent
Medium
null
7.11
4.99
3.43
1,270
IGI Lab-Grown
null
Cushion Modified
Ideal
E
VS1
1.58
1.01
68.1
62
Very Good
Excellent
Slightly Thick to Thick
null
6.71
6.67
4.54
5,030
GIA Lab-Grown
null
Radiant
null
G
VS1
1.01
1.37
69.2
68
Very Good
Very Good
Thick to Very Thick
null
6.86
5.02
3.47
4,060
GIA
null
Princess
Very Good
H
VVS2
1
1.03
75.3
72
Excellent
Excellent
Slightly Thick to Thick
null
5.4
5.26
3.96
2,730
GIA
Faint
Round
Excellent
D
VS1
1.51
1
60.3
58
Excellent
Excellent
Thin to Medium
null
7.43
7.46
4.49
1,770
GIA Lab-Grown
null
Radiant
null
D
VVS2
1.02
1.2
72.5
66
Excellent
Very Good
Thick to Very Thick
null
5.94
4.95
3.59
3,660
GIA
Faint
Marquise
null
F
VVS2
1
1.85
61.3
62
Excellent
Very Good
Thin to Thick
null
10.06
5.45
3.34
6,470
GIA
null
Radiant
null
D
VS1
1.04
1.17
69.7
68
Very Good
Very Good
Slightly Thick
null
6.24
5.34
3.73
5,150
GIA
null
Marquise
null
E
VS1
1.09
2.02
63.5
62
Excellent
Excellent
Medium to Slightly Thick
null
10.72
5.32
3.38
1,100
IGI Lab-Grown
null
Cushion Modified
Ideal
F
VS1
2.73
1.01
65.8
63
Excellent
Excellent
Slightly Thick to Thick
null
8.11
8.06
5.3
6,400
GIA Lab-Grown
null
Oval
null
E
VS1
1.08
1.49
63.6
59
Excellent
Excellent
Medium to Slightly Thick
null
8.36
5.61
3.57
1,050
IGI Lab-Grown
null
Oval
null
F
VS1
1.1
1.42
62.6
61
Excellent
Excellent
Medium to Slightly Thick
null
8.29
5.83
3.65
1,050
IGI Lab-Grown
null
Radiant
null
E
VS1
1.14
1.45
67.3
63
Excellent
Excellent
Thick
null
7.5
5.16
3.47
1,120
GIA Lab-Grown
null
Heart
null
D
VVS2
1.01
1.13
63.2
61
Excellent
Very Good
Slightly Thick to Very Thick
null
6
6.78
4.29
7,360
GIA
null
Cushion Modified
Ideal
F
VVS2
2.53
1.01
66.8
62
Excellent
Excellent
Medium to Thick
null
7.9
7.81
5.22
5,170
GIA Lab-Grown
null
Marquise
null
D
VVS2
1.01
1.83
59
58
Excellent
Very Good
Medium to Very Thick
null
9.97
5.46
3.22
1,230
GIA Lab-Grown
null
Round
Very Good
E
VS2
1.01
1.01
64.4
57
Excellent
Very Good
Slightly Thick to Thick
null
6.2
6.27
4.01
4,100
GIA
null
Cushion
Ideal
D
VVS1
1.75
1.03
67
60
Excellent
Excellent
Medium to Slightly Thick
null
7.11
6.91
4.63
4,690
IGI Lab-Grown
null
Oval
null
G
VS1
1
1.43
66.6
58
Excellent
Very Good
Medium to Very Thick
null
7.78
5.45
3.63
4,490
GIA
null
Marquise
null
D
IF
2.17
1.97
66.7
55
Very Good
Very Good
Medium to Thick
null
13.11
6.64
4.43
31,530
GIA
Faint
Princess
Very Good
G
VS2
1.01
1
76.6
71
Excellent
Very Good
Slightly Thick to Thick
null
5.18
5.18
3.97
2,530
GIA
Medium
Heart
null
G
VVS1
1.06
1.18
57.8
57
Excellent
Very Good
Medium to Very Thick
null
6.21
7.3
4.22
3,860
GIA
Faint
Marquise
null
E
VS1
1.2
2.06
63.8
54
Excellent
Excellent
Medium
null
11.25
5.47
3.49
1,190
IGI Lab-Grown
null
Marquise
null
D
VS1
1.02
2.03
62.8
60
Excellent
Excellent
Medium to Slightly Thick
null
10.6
5.21
3.27
1,110
IGI Lab-Grown
null
Round
Ideal
D
VS1
1.59
1.01
61
57
Excellent
Excellent
Medium
null
7.52
7.58
4.6
1,860
IGI Lab-Grown
null
Princess
Ideal
E
VS2
1.01
1
71.5
70
Excellent
Very Good
Thick to Very Thick
null
5.42
5.41
3.87
4,330
GIA
null
Emerald
null
G
VS2
1.01
1.44
69.6
64
Excellent
Very Good
Slightly Thick to Thick
null
6.7
4.66
3.24
2,700
GIA
null
Princess
Ideal
G
VVS1
1.02
1.01
72.6
71
Excellent
Excellent
Medium to Slightly Thick
null
5.61
5.54
4.02
3,800
GIA
null
Pear
null
G
VS1
1
1.52
63.3
62
Excellent
Excellent
Medium to Thick
null
8.41
5.53
3.5
5,080
GIA
null
Heart
null
E
VVS2
4.47
1.15
58.2
58
Excellent
Excellent
Slightly Thick to Very Thick
null
10.01
11.54
6.72
11,090
GIA Lab-Grown
null
Oval
null
G
VS2
1.01
1.39
61.4
64
Excellent
Very Good
Thick to Very Thick
null
7.92
5.7
3.5
4,430
GIA
Faint
Round
Excellent
H
VS2
1
1.01
63
57
Excellent
Excellent
Medium to Slightly Thick
null
6.32
6.36
4
4,080
GIA
null
Princess
Ideal
G
VS1
1
1.02
72.7
73
Excellent
Very Good
Medium
null
5.65
5.54
4.03
3,250
GIA
null
Heart
null
D
VVS1
1.02
1.19
56.1
61
Very Good
Excellent
Slightly Thick to Thick
null
5.92
7.04
3.95
9,530
GIA
null
Heart
null
G
VS2
1.52
1.17
58.2
60
Excellent
Excellent
Medium to Thick
null
6.95
8.16
4.75
9,730
GIA
null
Pear
null
E
VS1
1.1
1.62
62.9
60
Excellent
Excellent
Slightly Thick to Thick
null
9.3
5.74
3.61
1,100
GIA Lab-Grown
null
Radiant
null
H
VVS1
1.01
1.31
69.6
67
Excellent
Excellent
Thick to Very Thick
null
6.66
5.1
3.55
3,610
GIA
null
Marquise
null
D
VVS1
1.2
2.28
66.7
60
Excellent
Very Good
Thick to Very Thick
null
11.75
5.16
3.44
9,510
GIA
null
Marquise
null
D
VS1
1
1.75
66.1
59
Excellent
Very Good
Thick to Very Thick
null
9.12
5.22
3.45
6,380
GIA
null
Pear
null
E
VS1
1.1
1.62
60
61
Excellent
Excellent
Thin to Medium
null
9.42
5.83
3.5
1,100
IGI Lab-Grown
null
Pear
null
E
VS1
1.06
1.64
62.4
60
Excellent
Excellent
Medium to Thick
null
9.21
5.61
3.5
1,070
IGI Lab-Grown
null
Pear
null
F
VS1
1.04
1.58
61.7
59
Excellent
Excellent
Medium to Thick
null
8.95
5.67
3.5
1,040
GIA Lab-Grown
null
Marquise
null
F
VS1
1
2.1
58.1
60
Excellent
Excellent
Medium to Thick
null
10.8
5.14
2.99
5,130
GIA
Faint
Radiant
null
H
VVS1
1.17
1.12
69.8
69
Very Good
Very Good
Slightly Thick to Thick
null
6.17
5.52
3.85
4,240
GIA
null
Princess
Ideal
G
VVS1
1
1.01
72.5
70
Excellent
Very Good
Thick
null
5.43
5.39
3.91
3,350
GIA
null
Marquise
null
D
VS1
1
2.15
58.7
65
Excellent
Excellent
Medium to Thick
null
11.02
5.13
3.01
1,510
IGI Lab-Grown
null
Radiant
null
D
VS1
1.03
1.45
68.6
65
Excellent
Excellent
Slightly Thick to Thick
null
7.12
4.9
3.36
1,100
IGI Lab-Grown
null
Round
Very Good
H
VVS1
1
1
59.4
62
Excellent
Excellent
Medium to Slightly Thick
null
6.45
6.46
3.84
4,130
GIA
null
Pear
null
H
VS1
1.01
1.56
59.9
64
Excellent
Excellent
Thick to Very Thick
null
8.67
5.57
3.34
3,450
GIA
Faint
Marquise
null
D
VS1
1.27
1.98
61.6
60
Excellent
Excellent
Medium to Slightly Thick
null
11.41
5.75
3.54
1,370
IGI Lab-Grown
null
Princess
Ideal
F
VS2
1.04
1.03
73.8
75
Excellent
Very Good
Thick to Very Thick
null
5.62
5.47
4.04
2,790
GIA
null
Pear
null
F
VS1
1.04
1.74
63.9
59
Excellent
Excellent
Medium to Thick
null
9.57
5.49
3.51
1,040
GIA Lab-Grown
null
Pear
null
D
VS1
1
1.87
66.5
59
Excellent
Good
Medium to Extremely Thick
null
9.56
5.11
3.4
4,080
GIA
null
Pear
null
E
VS1
1.05
1.58
62.1
59
Excellent
Excellent
Medium to Slightly Thick
null
8.9
5.65
3.51
1,060
IGI Lab-Grown
null
Pear
null
E
VS1
1.03
1.59
58.2
59
Excellent
Excellent
Thin to Medium
null
9.21
5.81
3.38
1,040
IGI Lab-Grown
null
Pear
null
D
VS1
1.08
1.73
61.4
58
Excellent
Excellent
Thin to Thick
null
9.79
5.66
3.48
1,100
GIA Lab-Grown
null
Pear
null
E
VVS2
1
1.59
58.5
62
Excellent
Excellent
Slightly Thick to Thick
null
8.94
5.62
3.29
4,450
GIA
Faint
Marquise
null
D
VVS2
1
1.99
61.9
58
Excellent
Excellent
Medium to Slightly Thick
null
10.51
5.28
3.27
1,360
IGI Lab-Grown
null
Radiant
null
G
VVS2
1.01
1.3
68.8
68
Excellent
Excellent
Slightly Thick to Thick
null
6.71
5.16
3.55
3,940
GIA
null
Pear
null
G
VS1
1
1.59
62.5
64
Very Good
Very Good
Medium to Thick
null
8.79
5.52
3.45
4,550
GIA
null
Radiant
null
F
VS1
1
1.35
69.6
72
Excellent
Very Good
Thick to Very Thick
null
6.6
4.89
3.41
4,380
GIA
Faint
Oval
null
D
VS1
1.01
1.46
61.2
59
Excellent
Excellent
Medium to Slightly Thick
null
8.35
5.7
3.49
1,070
IGI Lab-Grown
null
Princess
Ideal
G
VS2
1
1.01
73.5
75
Very Good
Very Good
Slightly Thick to Very Thick
null
5.5
5.47
4.03
3,040
GIA
null
Round
Ideal
E
VS1
1.58
1
61.9
57
Excellent
Excellent
Medium
null
7.44
7.46
4.61
1,840
IGI Lab-Grown
null
Heart
null
D
VS1
2.09
1.15
56.4
60
Excellent
Excellent
Medium to Thick
null
7.9
9.06
5.11
5,090
IGI Lab-Grown
null
Round
Excellent
E
VS1
1.55
1
61.8
57
Excellent
Excellent
Slightly Thick
null
7.39
7.42
4.58
1,770
GIA Lab-Grown
null
Pear
null
G
VS1
1.04
1.53
64.6
57
Very Good
Very Good
Medium to Very Thick
null
8.57
5.6
3.62
3,850
GIA
Strong
End of preview. Expand in Data Studio
YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/datasets-cards)

Diamond Price Analysis and EDA

Overview

This project explores a real world diamonds dataset with the goal of understanding how physical and qualitative characteristics influence market price.
The analysis includes data cleaning, descriptive statistics, visual explorations, comparisons between diamond types, and extraction of insights.

Main Research Question

How is the price of a diamond influenced by its different characteristics?

Research Sub-Questions

  1. How are diamond carat sizes distributed across the dataset?
  2. In which price ranges are most diamonds found?
  3. Which numeric features have the strongest influence on price?
  4. How does price vary between different size categories?
  5. What are the price differences between natural diamonds and lab grown diamonds?

Key numeric features include carat weight, dimensions (length, width, height), depth percent and table percent.
Categorical features include shape, color, clarity, polish, symmetry, girdle and type.

Data Cleaning

Several steps were taken to prepare the data:

  • Removed three columns with many missing values: Fluorescence, Cut, Culet.
  • Removed 3 duplicate rows.
  • Removed rows with missing values in essential columns.
  • Considered but avoided categorical encoding to keep data readable.
  • Standardized the Type column to separate Natural and Lab grown.

Exploratory Data Analysis

Carat Weight Distribution

Carat Weight Distribution

Price Distribution by Ranges

Price Distribution by Ranges

Feature Importance

Feature Importance

Price Distribution by Size Categories

Price Distribution by Size Categories

Natural vs Lab Grown Trend Lines (1 to 2 carat)

Natural vs Lab Grown Trend Lines

Key Insights

  • Carat Weight is by far the strongest predictor of price.
  • Most diamonds are around one carat and cost between 1000 and 2000 dollars.
  • Price variation grows significantly with size.
  • Lab grown diamonds are consistently cheaper than natural diamonds.
  • The effect of carat weight on price is much weaker for lab grown diamonds compared to natural diamonds.

How to Load This Dataset

from datasets import load_dataset
dataset = load_dataset("your-username/diamond-prices")

Files Included

  • dataset.csv
  • EDA_notebook.ipynb
  • README.md
Downloads last month
51