Dataset Viewer
Auto-converted to Parquet
Search is not available for this dataset
ph
float64
Hardness
float64
Solids
float64
Chloramines
float64
Sulfate
float64
Conductivity
float64
Organic_carbon
float64
Trihalomethanes
float64
Turbidity
float64
Potability
int64
6.888843
188.920671
27,368.014339
8.003187
355.478563
465.346979
12.377083
75.112494
4.512332
1
9.135694
194.815618
9,496.910354
6.185925
345.714206
562.771467
13.676435
74.424166
3.281802
0
7.920795
173.357151
13,454.634777
6.947895
356.768119
471.368695
16.47784
68.000508
3.374327
0
6.630122
192.521703
36,269.701317
4.973866
277.499297
320.470853
14.786347
80.980213
3.352765
1
6.128426
141.49241
9,615.83271
7.627919
277.951704
415.008737
16.435843
50.693927
4.633824
0
5.628407
226.830043
28,334.491937
8.012497
293.924273
351.161213
15.019241
35.178662
5.050683
1
7.766187
223.057835
14,945.295661
6.026817
null
482.406236
6.747761
83.186751
3.674225
0
6.528479
176.939676
18,533.337828
6.083268
336.296413
491.477924
13.531264
96.944104
4.063276
0
4.63825
182.419621
34,261.985889
6.197716
307.458454
439.117705
7.760853
null
4.124538
1
8.040144
224.863482
6,879.764653
8.136931
418.95501
360.957679
12.405913
73.21799
3.98646
1
null
184.020029
13,361.226016
9.258656
335.089993
467.444154
19.581926
80.084233
4.411058
0
6.323942
185.992411
23,234.788934
5.892963
347.236827
401.304895
13.263282
60.474031
3.575011
1
4.103868
168.283651
22,207.470232
5.85008
null
344.869506
15.466455
34.719623
3.808851
0
5.343075
211.662091
45,166.912141
6.651801
279.7675
485.959717
19.682337
70.546862
4.240032
0
6.728975
187.202712
26,376.062287
8.457662
337.861922
488.976394
17.689785
77.131889
4.593787
1
6.709336
226.427586
8,238.290038
7.692413
289.92138
284.774459
11.86848
51.875207
4.074387
0
null
201.83372
29,508.492814
3.929624
325.061246
428.661398
8.819491
76.373753
4.115321
0
null
205.509457
20,406.927672
6.810069
355.265923
482.330055
12.337776
70.580607
4.102529
0
8.837787
195.827213
11,610.207949
7.870062
332.759029
514.925997
12.291616
87.429078
2.08708
1
8.473249
129.240081
20,465.588609
7.212917
null
590.906574
15.292706
63.939821
4.810185
1
6.354038
227.232895
16,174.433739
7.567419
411.285251
355.527307
9.969701
82.492595
4.93524
1
6.19317
225.683422
12,883.726496
4.73936
null
389.405978
14.560136
76.457816
3.466645
1
6.769573
168.937072
11,067.181148
7.121264
305.79495
289.54246
18.545903
62.001571
5.22054
0
5.41212
272.514685
2,835.303165
5.77801
null
347.804416
15.307746
66.661479
5.680347
1
5.126763
230.603758
11,983.869376
6.303357
null
402.883113
11.168946
77.488213
4.708658
1
null
210.744708
12,229.298484
6.950981
387.388826
422.027072
14.680844
77.32233
2.516769
0
null
236.356975
24,873.622781
9.410658
300.688417
479.056034
13.521923
46.598871
5.284233
0
6.438422
202.537835
26,448.245087
5.775933
322.451774
567.201675
12.641968
55.701067
3.38036
1
4.761105
150.074533
19,197.105515
7.936652
374.477319
400.451268
11.13215
69.26035
4.581395
1
9.597192
167.088976
21,153.322827
7.944469
346.075016
335.197608
14.347676
50.642447
5.145153
1
6.810345
166.592425
18,852.122979
7.847712
null
294.383914
13.447314
54.117664
4.115696
0
null
159.832881
23,917.190146
6.781576
369.223852
472.927194
13.891834
85.758645
2.857687
0
null
184.040988
23,727.094105
4.964449
277.680837
382.847741
10.213623
75.56105
3.714469
1
5.87244
185.403976
14,343.423207
9.690213
333.564587
409.113512
14.74124
64.183725
3.741067
0
6.155249
159.519502
19,781.6106
10.08161
310.140661
505.108379
16.768604
41.995455
3.803909
0
null
218.405545
11,370.649169
6.866826
392.841907
284.551173
16.09552
null
3.266562
0
6.284386
222.688795
18,526.261691
8.980271
395.261637
517.150548
15.86901
55.384333
5.030712
1
null
191.258655
14,064.899155
7.036949
361.154951
399.838662
10.845264
35.582992
3.732339
0
5.191834
211.094185
14,866.103863
7.238691
323.109285
388.71658
17.78
83.505406
3.859801
1
null
164.909072
32,768.227966
6.309685
285.560983
527.198675
15.843303
59.728173
3.499453
1
6.985192
133.432132
21,944.64183
8.577655
341.239907
536.277153
16.176686
91.708813
4.246202
1
5.274185
227.340186
17,605.535759
6.32698
358.589903
489.434591
11.199191
null
4.364426
1
5.290667
160.432029
9,265.104948
9.272066
358.547147
464.573338
11.220817
67.646066
3.530574
0
7.442023
194.763871
34,565.70169
8.493348
294.836218
350.085116
18.962014
79.958321
2.894651
1
8.892998
224.078183
22,960.180644
8.982036
274.689459
466.24548
9.693049
59.577212
3.619133
1
5.89087
184.055762
34,920.039348
7.401367
343.791603
281.544452
14.728773
62.601685
4.370777
0
7.157338
214.010101
23,718.552011
3.924367
343.764377
506.899657
15.446049
null
5.183622
0
10.15544
300.292476
12,652.362979
6.655126
398.647786
487.459131
9.347634
67.919789
5.002467
0
6.603641
206.919743
14,598.025787
6.452141
316.253503
582.110606
12.520933
68.872497
3.403798
1
6.442496
183.071355
11,592.445624
8.960736
408.24267
385.014867
16.148258
83.332516
2.891019
1
6.714777
185.909303
34,558.402667
6.554858
360.508237
303.968203
10.22647
50.214011
4.684853
1
5.877974
141.615287
13,652.293199
5.701659
279.7824
538.495404
12.034042
67.907258
4.03226
0
6.648793
213.959988
16,388.405265
7.656506
357.728131
372.686995
15.379519
31.895507
5.138048
0
9.24142
127.918826
39,566.754352
8.860818
281.99564
487.339169
9.534499
65.516668
4.718851
1
7.156424
197.993538
27,025.206963
6.734527
359.710517
448.457161
12.511973
49.299849
2.958415
1
6.941719
173.334389
20,111.821256
6.697194
null
374.485332
19.937486
null
4.563183
1
7.3616
231.793183
29,169.720783
7.929904
375.097188
389.272645
13.853116
39.532787
3.751589
1
9.434006
158.38784
20,474.820824
5.857333
285.395112
476.842011
14.38835
73.164778
4.201054
1
null
161.038971
25,583.492009
6.796914
null
467.479901
14.105554
52.331462
4.514175
1
7.842979
200.829674
16,827.192867
9.888403
null
566.330705
13.791245
46.662407
5.109312
1
null
157.801194
16,963.625012
8.335619
300.044234
360.995994
12.823861
71.717005
4.405386
0
6.339143
167.419711
16,364.159409
8.095991
312.394079
372.511627
21.887088
91.066356
3.355765
1
7.52898
225.340986
8,129.734919
6.305472
309.231247
379.339293
16.961944
64.265787
3.64441
0
8.581043
153.709092
19,970.434294
7.661687
312.885127
520.808359
14.781584
74.127793
2.883145
1
7.685397
230.335708
7,324.701425
7.991366
331.512533
492.850391
14.233952
74.068658
4.179187
0
8.397248
199.495811
16,772.226246
8.117218
343.403764
402.464906
17.236047
75.853549
2.835794
0
null
167.386127
20,944.620814
4.963124
null
566.339294
11.318807
null
3.679795
0
4.931958
164.666769
31,155.540218
7.411483
383.782626
506.531414
14.980034
69.249229
5.045983
1
5.895949
187.153617
37,118.255436
4.60073
253.158469
531.169101
11.410184
77.286551
3.659653
1
7.692524
220.819152
26,686.847941
8.286211
299.958846
564.526974
13.861775
77.01594
4.522432
0
5.716756
197.10421
12,641.527809
8.702061
287.012564
345.083936
17.273966
58.411515
4.080675
0
4.997771
280.082411
26,849.194735
6.130757
374.232961
297.61154
15.571571
70.560275
3.404633
1
6.548021
278.585105
25,508.386949
6.749378
366.871502
497.321753
16.563167
79.323678
3.61186
1
6.714862
236.542051
33,197.150527
4.958517
331.48453
402.946557
14.841182
null
4.593764
0
6.987335
224.034417
13,505.033116
5.87118
null
479.825497
15.921413
73.064218
3.870293
1
5.403884
199.016674
11,571.421537
6.285434
null
377.430746
11.859074
74.012043
3.189942
1
6.317577
143.299959
22,577.818935
5.690078
338.8972
573.814744
15.315515
48.973887
3.399048
0
7.213537
176.640063
34,727.408564
5.162278
287.706912
332.199507
10.327476
77.261468
3.497481
0
7.064789
188.391725
20,567.14593
7.443243
360.322976
656.924128
16.274831
84.827183
4.401628
1
7.610509
208.817812
34,538.544038
5.60062
301.787241
470.740312
15.668908
35.365054
4.692218
0
6.144759
210.979747
19,981.315188
9.203614
271.097104
332.598126
17.187963
79.634242
3.08208
1
8.410626
185.183739
29,985.249881
8.178008
null
489.904347
17.697765
74.230076
4.352296
0
9.149127
162.683275
21,463.059188
9.820675
null
501.566902
15.667044
83.691551
4.805641
0
10.191665
211.566904
13,630.047308
6.524476
297.049066
468.371387
17.411747
72.720573
3.403423
0
6.284248
190.017649
12,206.68121
7.910711
null
395.261063
13.24614
58.927726
3.377132
0
9.831402
263.632722
13,345.369098
6.566929
295.774218
462.439737
12.002323
76.021367
3.311808
0
null
205.235194
22,613.297485
6.48581
266.639384
313.009639
11.623605
28.400877
3.978495
1
7.369912
155.644805
19,283.402051
5.435025
399.940784
391.324215
18.148562
63.698617
3.821721
0
6.975209
175.421039
35,701.15532
5.494254
290.052802
401.058802
10.285283
66.420579
5.256484
1
8.447404
163.949905
19,583.057349
6.433184
334.655886
547.02383
18.238711
45.668318
5.218307
1
6.39657
243.724707
12,278.98528
6.794551
null
489.449305
17.638039
null
4.18825
0
6.189699
224.432949
15,229.702869
5.879184
366.501118
649.805765
10.257515
71.780949
3.027371
1
6.903074
206.922504
17,947.988114
7.048017
null
601.985223
11.77511
58.176255
4.473887
1
null
214.21606
19,026.672842
7.634724
null
421.140278
16.825739
74.629431
3.986882
0
null
187.873284
29,532.615003
7.981037
274.493395
469.132117
16.169212
78.925527
4.586748
0
7.874671
195.102299
17,404.177061
7.509306
null
327.45976
16.140368
78.698446
2.309149
1
7.774468
216.752872
22,316.398284
7.947534
385.043438
288.068578
14.136699
68.861861
3.891097
1
4.443239
178.956206
25,008.532248
4.948815
298.576676
429.544773
17.729724
56.347689
3.268325
0
6.232011
208.668172
12,149.69673
8.560039
null
325.344706
13.246995
33.380354
1.641515
1
6.704432
148.842129
13,329.032253
7.118465
null
403.420996
20.794371
70.346102
3.395332
0
End of preview. Expand in Data Studio

Water Potability Dataset

Overview

This dataset contains water quality metrics from 2,556 different water bodies. The primary purpose of this dataset is to serve as a basis for a binary classification problem: predicting whether water is potable (safe for human consumption) based on its chemical and physical properties.


Features

The dataset consists of 10 columns. The first 9 are features, and the last one is the target variable.

  • ph: The pH level of the water, ranging from 0 to 14. This is a crucial measure of how acidic or alkaline water is.
  • Hardness: A measure of the concentration of dissolved minerals, primarily calcium and magnesium.
  • Solids: The total amount of dissolved solids (TDS) in the water, measured in milligrams per liter (mg/L).
  • Chloramines: The concentration of chloramines in the water, measured in mg/L. These are disinfectants used to treat drinking water.
  • Sulfate: The concentration of sulfate dissolved in the water, measured in mg/L.
  • Conductivity: The electrical conductivity of the water, measured in microSiemens per centimeter (μS/cm). It's an indicator of the amount of dissolved ionic substances.
  • Organic_carbon: The amount of organic carbon in the water, measured in mg/L.
  • Trihalomethanes: The concentration of Trihalomethanes in the water, measured in micrograms per liter (μg/L). These are byproducts of water disinfection.
  • Turbidity: A measure of the cloudiness or haziness of the water caused by suspended particles, measured in Nephelometric Turbidity Units (NTU).

Target Variable

  • Potability: This is the column you want to predict.
    • 1: The water is potable (safe to drink).
    • 0: The water is not potable.

How to Use

You can easily load and explore this dataset using a library like pandas in Python.

import pandas as pd

# Load the dataset from the CSV file
df = pd.read_csv('water_potability.csv')

# Display the first 5 rows
print(df.head())

# Get a summary of the dataset
print(df.info())

# Check the distribution of the target variable
print(df['Potability'].value_counts())
Downloads last month
121