Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,50 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Water Potability Dataset
|
| 2 |
+
|
| 3 |
+
## Overview
|
| 4 |
+
|
| 5 |
+
This dataset contains water quality metrics from 3,276 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.
|
| 6 |
+
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
## Features
|
| 10 |
+
|
| 11 |
+
The dataset consists of 10 columns. The first 9 are features, and the last one is the target variable.
|
| 12 |
+
|
| 13 |
+
- **ph**: The pH level of the water, ranging from 0 to 14. This is a crucial measure of how acidic or alkaline water is.
|
| 14 |
+
- **Hardness**: A measure of the concentration of dissolved minerals, primarily calcium and magnesium.
|
| 15 |
+
- **Solids**: The total amount of dissolved solids (TDS) in the water, measured in milligrams per liter (mg/L).
|
| 16 |
+
- **Chloramines**: The concentration of chloramines in the water, measured in mg/L. These are disinfectants used to treat drinking water.
|
| 17 |
+
- **Sulfate**: The concentration of sulfate dissolved in the water, measured in mg/L.
|
| 18 |
+
- **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.
|
| 19 |
+
- **Organic_carbon**: The amount of organic carbon in the water, measured in mg/L.
|
| 20 |
+
- **Trihalomethanes**: The concentration of Trihalomethanes in the water, measured in micrograms per liter (μg/L). These are byproducts of water disinfection.
|
| 21 |
+
- **Turbidity**: A measure of the cloudiness or haziness of the water caused by suspended particles, measured in Nephelometric Turbidity Units (NTU).
|
| 22 |
+
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
## Target Variable
|
| 26 |
+
|
| 27 |
+
- **Potability**: This is the column you want to predict.
|
| 28 |
+
- **1**: The water is potable (safe to drink).
|
| 29 |
+
- **0**: The water is not potable.
|
| 30 |
+
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
+
## How to Use
|
| 34 |
+
|
| 35 |
+
You can easily load and explore this dataset using a library like `pandas` in Python.
|
| 36 |
+
|
| 37 |
+
```python
|
| 38 |
+
import pandas as pd
|
| 39 |
+
|
| 40 |
+
# Load the dataset from the CSV file
|
| 41 |
+
df = pd.read_csv('water_potability.csv')
|
| 42 |
+
|
| 43 |
+
# Display the first 5 rows
|
| 44 |
+
print(df.head())
|
| 45 |
+
|
| 46 |
+
# Get a summary of the dataset
|
| 47 |
+
print(df.info())
|
| 48 |
+
|
| 49 |
+
# Check the distribution of the target variable
|
| 50 |
+
print(df['Potability'].value_counts())
|