text_plain_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  # visualization tool

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

data.corr()

# Veri setimizin Korealasyon Haritasını çıkardık
f,ax = plt.subplots(figsize = (15, 15))
sns.heatmap(data.corr(), annot = True, linewidths=.5, fmt= ".2f", ax=ax)
plt.show()

data.columns

data.Hardness.plot(kind='line', color='green', label='Hardness', linewidth=1, alpha=0.6, grid=True, linestyle=':', figsize=(18, 18), marker='o', markerfacecolor='magenta', markersize=7)
data.Sulfate.plot(color='blue', label='Sulfate', linewidth=1, alpha=0.6, grid=True, linestyle='-.', figsize=(18, 18), marker='o', markerfacecolor='yellow', markersize=7)
plt.legend(loc='upper right')
plt.xlabel('x axis')
plt.ylabel('y axis')
plt.title('Line Plot')
plt.show()