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

plt.clf()

dictionary = {'Barcelona': 'Messi', 'Real Madrid': 'Modric'}

dictionary['Barcelona'] = 'Messi'
dictionary['PSG'] = 'Neymar'
del dictionary['Real Madrid']
dictionary.clear()

i = 0
while i != 6:
    i += 2

lis = [1, 3, 5, 7, 9, 11]
for i in lis:
    print('i is: ', i)
print('')
for index, value in enumerate(lis):
    print(index, ' : ', value)
print('')
dictionary = {'Barcelona': 'Messi', 'PSG': 'Neymar'}
for key, value in dictionary.items():
    print(key, ' : ', value)
print('')
for index, value in data[['Sulfate']][0:5].iterrows():
    print(index, ' : ', value)