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()

x = data['Sulfate'] > 470
data[x]

x = 2
def f():
    x = 3
    return x

x = 5
def f():
    y = 2 * x
    return y

def square():
    """ return square of value """
    def add():
        """ add two local variable """
        x = 2
        y = 3
        z = x + y
        return z
    return add() ** 2

def f(a, b=1, c=2):
    y = a + b + c
    return y
print(f(5))
print(f(5, 6, 7))