Dataset Viewer
Auto-converted to Parquet Duplicate
Unnamed: 0
int64
1
53.9k
carat
float64
0.2
5.01
cut
stringclasses
5 values
color
stringclasses
7 values
clarity
stringclasses
8 values
depth
float64
43
79
table
float64
43
95
price
int64
326
18.8k
x
float64
0
10.7
y
float64
0
58.9
z
float64
0
31.8
1
0.23
Ideal
E
SI2
61.5
55
326
3.95
3.98
2.43
2
0.21
Premium
E
SI1
59.8
61
326
3.89
3.84
2.31
3
0.23
Good
E
VS1
56.9
65
327
4.05
4.07
2.31
4
0.29
Premium
I
VS2
62.4
58
334
4.2
4.23
2.63
5
0.31
Good
J
SI2
63.3
58
335
4.34
4.35
2.75
6
0.24
Very Good
J
VVS2
62.8
57
336
3.94
3.96
2.48
7
0.24
Very Good
I
VVS1
62.3
57
336
3.95
3.98
2.47
8
0.26
Very Good
H
SI1
61.9
55
337
4.07
4.11
2.53
9
0.22
Fair
E
VS2
65.1
61
337
3.87
3.78
2.49
10
0.23
Very Good
H
VS1
59.4
61
338
4
4.05
2.39
11
0.3
Good
J
SI1
64
55
339
4.25
4.28
2.73
12
0.23
Ideal
J
VS1
62.8
56
340
3.93
3.9
2.46
13
0.22
Premium
F
SI1
60.4
61
342
3.88
3.84
2.33
14
0.31
Ideal
J
SI2
62.2
54
344
4.35
4.37
2.71
15
0.2
Premium
E
SI2
60.2
62
345
3.79
3.75
2.27
16
0.32
Premium
E
I1
60.9
58
345
4.38
4.42
2.68
17
0.3
Ideal
I
SI2
62
54
348
4.31
4.34
2.68
18
0.3
Good
J
SI1
63.4
54
351
4.23
4.29
2.7
19
0.3
Good
J
SI1
63.8
56
351
4.23
4.26
2.71
20
0.3
Very Good
J
SI1
62.7
59
351
4.21
4.27
2.66
21
0.3
Good
I
SI2
63.3
56
351
4.26
4.3
2.71
22
0.23
Very Good
E
VS2
63.8
55
352
3.85
3.92
2.48
23
0.23
Very Good
H
VS1
61
57
353
3.94
3.96
2.41
24
0.31
Very Good
J
SI1
59.4
62
353
4.39
4.43
2.62
25
0.31
Very Good
J
SI1
58.1
62
353
4.44
4.47
2.59
26
0.23
Very Good
G
VVS2
60.4
58
354
3.97
4.01
2.41
27
0.24
Premium
I
VS1
62.5
57
355
3.97
3.94
2.47
28
0.3
Very Good
J
VS2
62.2
57
357
4.28
4.3
2.67
29
0.23
Very Good
D
VS2
60.5
61
357
3.96
3.97
2.4
30
0.23
Very Good
F
VS1
60.9
57
357
3.96
3.99
2.42
31
0.23
Very Good
F
VS1
60
57
402
4
4.03
2.41
32
0.23
Very Good
F
VS1
59.8
57
402
4.04
4.06
2.42
33
0.23
Very Good
E
VS1
60.7
59
402
3.97
4.01
2.42
34
0.23
Very Good
E
VS1
59.5
58
402
4.01
4.06
2.4
35
0.23
Very Good
D
VS1
61.9
58
402
3.92
3.96
2.44
36
0.23
Good
F
VS1
58.2
59
402
4.06
4.08
2.37
37
0.23
Good
E
VS1
64.1
59
402
3.83
3.85
2.46
38
0.31
Good
H
SI1
64
54
402
4.29
4.31
2.75
39
0.26
Very Good
D
VS2
60.8
59
403
4.13
4.16
2.52
40
0.33
Ideal
I
SI2
61.8
55
403
4.49
4.51
2.78
41
0.33
Ideal
I
SI2
61.2
56
403
4.49
4.5
2.75
42
0.33
Ideal
J
SI1
61.1
56
403
4.49
4.55
2.76
43
0.26
Good
D
VS2
65.2
56
403
3.99
4.02
2.61
44
0.26
Good
D
VS1
58.4
63
403
4.19
4.24
2.46
45
0.32
Good
H
SI2
63.1
56
403
4.34
4.37
2.75
46
0.29
Premium
F
SI1
62.4
58
403
4.24
4.26
2.65
47
0.32
Very Good
H
SI2
61.8
55
403
4.35
4.42
2.71
48
0.32
Good
H
SI2
63.8
56
403
4.36
4.38
2.79
49
0.25
Very Good
E
VS2
63.3
60
404
4
4.03
2.54
50
0.29
Very Good
H
SI2
60.7
60
404
4.33
4.37
2.64
51
0.24
Very Good
F
SI1
60.9
61
404
4.02
4.03
2.45
52
0.23
Ideal
G
VS1
61.9
54
404
3.93
3.95
2.44
53
0.32
Ideal
I
SI1
60.9
55
404
4.45
4.48
2.72
54
0.22
Premium
E
VS2
61.6
58
404
3.93
3.89
2.41
55
0.22
Premium
D
VS2
59.3
62
404
3.91
3.88
2.31
56
0.3
Ideal
I
SI2
61
59
405
4.3
4.33
2.63
57
0.3
Premium
J
SI2
59.3
61
405
4.43
4.38
2.61
58
0.3
Very Good
I
SI1
62.6
57
405
4.25
4.28
2.67
59
0.3
Very Good
I
SI1
63
57
405
4.28
4.32
2.71
60
0.3
Good
I
SI1
63.2
55
405
4.25
4.29
2.7
61
0.35
Ideal
I
VS1
60.9
57
552
4.54
4.59
2.78
62
0.3
Premium
D
SI1
62.6
59
552
4.23
4.27
2.66
63
0.3
Ideal
D
SI1
62.5
57
552
4.29
4.32
2.69
64
0.3
Ideal
D
SI1
62.1
56
552
4.3
4.33
2.68
65
0.42
Premium
I
SI2
61.5
59
552
4.78
4.84
2.96
66
0.28
Ideal
G
VVS2
61.4
56
553
4.19
4.22
2.58
67
0.32
Ideal
I
VVS1
62
55.3
553
4.39
4.42
2.73
68
0.31
Very Good
G
SI1
63.3
57
553
4.33
4.3
2.73
69
0.31
Premium
G
SI1
61.8
58
553
4.35
4.32
2.68
70
0.24
Premium
E
VVS1
60.7
58
553
4.01
4.03
2.44
71
0.24
Very Good
D
VVS1
61.5
60
553
3.97
4
2.45
72
0.3
Very Good
H
SI1
63.1
56
554
4.29
4.27
2.7
73
0.3
Premium
H
SI1
62.9
59
554
4.28
4.24
2.68
74
0.3
Premium
H
SI1
62.5
57
554
4.29
4.25
2.67
75
0.3
Good
H
SI1
63.7
57
554
4.28
4.26
2.72
76
0.26
Very Good
F
VVS2
59.2
60
554
4.19
4.22
2.49
77
0.26
Very Good
E
VVS2
59.9
58
554
4.15
4.23
2.51
78
0.26
Very Good
D
VVS2
62.4
54
554
4.08
4.13
2.56
79
0.26
Very Good
D
VVS2
62.8
60
554
4.01
4.05
2.53
80
0.26
Very Good
E
VVS1
62.6
59
554
4.06
4.09
2.55
81
0.26
Very Good
E
VVS1
63.4
59
554
4
4.04
2.55
82
0.26
Very Good
D
VVS1
62.1
60
554
4.03
4.12
2.53
83
0.26
Ideal
E
VVS2
62.9
58
554
4.02
4.06
2.54
84
0.38
Ideal
I
SI2
61.6
56
554
4.65
4.67
2.87
85
0.26
Good
E
VVS1
57.9
60
554
4.22
4.25
2.45
86
0.24
Premium
G
VVS1
62.3
59
554
3.95
3.92
2.45
87
0.24
Premium
H
VVS1
61.2
58
554
4.01
3.96
2.44
88
0.24
Premium
H
VVS1
60.8
59
554
4.02
4
2.44
89
0.24
Premium
H
VVS2
60.7
58
554
4.07
4.04
2.46
90
0.32
Premium
I
SI1
62.9
58
554
4.35
4.33
2.73
91
0.7
Ideal
E
SI1
62.5
57
2,757
5.7
5.72
3.57
92
0.86
Fair
E
SI2
55.1
69
2,757
6.45
6.33
3.52
93
0.7
Ideal
G
VS2
61.6
56
2,757
5.7
5.67
3.5
94
0.71
Very Good
E
VS2
62.4
57
2,759
5.68
5.73
3.56
95
0.78
Very Good
G
SI2
63.8
56
2,759
5.81
5.85
3.72
96
0.7
Good
E
VS2
57.5
58
2,759
5.85
5.9
3.38
97
0.7
Good
F
VS1
59.4
62
2,759
5.71
5.76
3.4
98
0.96
Fair
F
SI2
66.3
62
2,759
6.27
5.95
4.07
99
0.73
Very Good
E
SI1
61.6
59
2,760
5.77
5.78
3.56
100
0.8
Premium
H
SI1
61.5
58
2,760
5.97
5.93
3.66
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)

README - Diamonds Dataset & EDA Analysis

Dataset Overview + Data Cleaning: The diamonds dataset contains detailed information on 53,940 diamonds, including both numerical and categorical features commonly used in the gemstone and jewelry industry. It is widely used in data analysis and machine learning to study how characteristics such as carat, cut, color, clarity, depth, table, and physical dimensions (x, y, z) influence price. To prepare the dataset for analysis, I first verified that it contains no missing values and no duplicate rows. I then removed an irrelevant column created during CSV export (“Unnamed: 0”), as well as entries with impossible physical dimensions (x, y, or z equal to zero), since a real diamond cannot have a dimension of zero.

Outlier Detection & Decisions: After removing invalid rows, I examined the numerical features to identify potential outliers. Although extreme values were found in variables such as price, carat, and the physical dimensions, these values represent rare but valid diamonds that are larger, heavier, or significantly more expensive than typical ones. Since these observations reflect meaningful real-world variation and contribute important information about diamond pricing, I decided to keep all outliers in the dataset.

Descriptive Statistics

To better understand the distribution of the numerical features in the dataset, I analyzed summary statistics such as the mean, median, standard deviation, and value ranges. The results show large variability in price and carat, with price ranging from $326 to $18,823 and carat ranging from 0.2 to 5.01. These wide ranges indicate strong differences in diamond size and cost across the dataset. In contrast, features like depth and table are more consistent, showing lower variability and suggesting stable manufacturing or cutting proportions. The physical dimensions (x, y, z) also show moderate variation, reflecting differences in diamond shapes and proportions. Overall, these descriptive statistics provide an initial understanding of the dataset and help indicate which features may have a stronger influence on price.

Visualizations

To better understand how the numerical features in the dataset are distributed, I created visualizations such as histograms and a correlation heatmap. These visualizations help reveal patterns such as skewness, variability, and relationships between key variables.

Main Observations (Histograms): -Price is strongly right-skewed, meaning most diamonds are relatively inexpensive while a smaller number reach very high prices. -Carat shows a similar right-skew, indicating that larger diamonds are rare. -Depth and table are more normally distributed, suggesting consistent cutting standards. -x, y, z (dimensions) show moderate spread with a few unusually large values. These insights help highlight which features may require transformation or special handling in later modeling steps.

Correlation Heatmap

The heatmap below shows the correlations between the numerical features in the dataset. Screenshot 2025-11-17 at 13.39.45 The heatmap shows strong positive correlations between carat, price, and the physical dimensions (x, y, z). This means larger diamonds tend to have higher prices and larger measurements. Depth and table show weak or negative correlations with most features, indicating they have less direct influence on price.

Research Questions:

In this section, I explored three research questions to understand how different diamond characteristics influence price. For each question, I used visualizations to compare average prices across categories and identify clear patterns.

Q1: Does cut quality affect price?

Screenshot 2025-11-17 at 11.40.45 This chart shows the average diamond price across different cut categories. Premium diamonds have the highest average price, while Ideal diamonds have the lowest. This indicates that cut quality alone does not determine price. The results suggest that other factors, such as carat size, strongly influence price and may vary across cut categories. Therefore, the relationship between cut and price is not linear and cannot be interpreted independently of other features.

Q2: Does color grade influence price?

Screenshot 2025-11-17 at 11.41.49 This chart shows how the average diamond price varies across color grades. The trend is clear: diamonds with lower color grades (I–J) have the highest average prices, while diamonds with higher color grades (D–F) are less expensive. This is the opposite of what we might expect in theory, where whiter diamonds (D–F) are considered more valuable. This pattern suggests that color alone does not determine price. It is likely influenced by additional factors such as carat size — for example, color grades I and J may include larger diamonds on average, raising their mean price. Therefore, the relationship between color and price in this dataset should be interpreted together with other features, not independently.

Q3: Does clarity impact price?

Screenshot 2025-11-17 at 11.42.53 This chart shows that the relationship between clarity and price is not straightforward. While we might expect higher clarity grades (such as FL, IF, VVS1, VVS2) to be more expensive, the plot reveals that SI2 has the highest average price. This suggests that clarity alone does not determine the price — and that other factors, especially carat size, strongly influence the results. Diamonds with lower clarity can still be more expensive if they are larger.

Summary of Key Insights

The exploratory analysis reveals that diamond price is influenced by multiple factors, but not always in a straightforward or expected way. While cut, color, and clarity all show some relationship with price, the visualizations demonstrate that these attributes do not determine the price on their own. Instead, carat size has a much stronger impact, and it often explains why certain categories with lower theoretical quality (such as SI2 or lower color grades) still show higher average prices. Overall, the findings suggest that diamond size is the main driver of price, while the qualitative attributes (cut, color, clarity) contribute to price variation but only together with carat.

Presentation Video

You can watch the presentation video here: https://huggingface.co/datasets/aurele1/diamonds-eda-aurele/resolve/main/brief%20video.MOV

Downloads last month
7