text_plain_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

df = pd.read_csv('../input/parkinsonsxyz/parkinsons2.csv')

df.shape

df.describe().T

df.isnull().sum()

df.columns

col = {'MDVP:Fo(Hz)': 1, 'MDVP:Fhi(Hz)': 2, 'MDVP:Flo(Hz)': 3, 'MDVP:Jitter(%)': 4, 'MDVP:Jitter(Abs)': 5, 'MDVP:RAP': 6, 'MDVP:PPQ': 7, 'Jitter:DDP': 8, 'MDVP:Shimmer': 9, 'MDVP:Shimmer(dB)': 10, 'Shimmer:APQ3': 11, 'Shimmer:APQ5': 12, 'MDVP:APQ': 13, 'Shimmer:DDA': 14, 'NHR': 15, 'HNR': 16, 'RPDE': 17, 'DFA': 18, 'spread1': 19, 'spread2': 20, 'D2': 21, 'PPE': 22}

q1 = df.quantile(0.25)
q2 = df.quantile(0.5)
q3 = df.quantile(0.75)
IQR = q3 - q1

df_out = df[~((df < q1 - 1.5 * IQR) | (df > q3 + 1.5 * IQR)).any(axis=1)]

plt.figure(figsize=(20, 30))
for variable, i in col.items():
    plt.subplot(5, 5, i)
    plt.boxplot(df_out[variable])
    plt.title(variable)
plt.show()