text_plain_output_1.png image_output_1.png
import matplotlib.pyplot as plt

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import seaborn as sns

df = pd.read_csv('/kaggle/input/water-potability/water_potability.csv')

fig, ax = plt.subplots(figsize=(12,6))
sns.heatmap(df.isnull(), ax=ax)
ax.set_title('Null values')

df['Potability'].value_counts().plot(kind='pie', autopct='%1.1f%%', radius=1.5, textprops={'fontsize': 16})