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

df = pd.read_csv('/kaggle/input/fifa19/data.csv')

data = pd.read_csv('/kaggle/input/fifa19/data.csv')

data.columns

plt.rcParams['figure.figsize'] = (25, 16)
plt.rcParams['font.family'] = 'times new roman'

df = pd.read_csv('/kaggle/input/fifa19/data.csv')
threshold1 = sum(data.Overall) / len(data.Overall) + 25
threshold2 = sum(data.Overall) / len(data.Overall) + 15
threshold3 = sum(data.Overall) / len(data.Overall) + 5
threshold4 = sum(data.Overall) / len(data.Overall)
threshold5 = sum(data.Overall) / len(data.Overall) - 5
threshold6 = sum(data.Overall) / len(data.Overall) - 15
threshold7 = sum(data.Overall) / len(data.Overall) - 25
data['Oyuncu_Overall_Sınıfı'] = ['SuperStar' if i >= threshold1 else 'Star' if threshold1 > i >= threshold2 else 'Yetenekli' if threshold2 > i >= threshold3 else 'Vasat' if threshold3 > i >= threshold4 else 'Gelişmez' if threshold4 > i >= threshold5 else 'Kötü' if threshold5 > i >= threshold6 else 'Rezil' for i in data.Overall]
data.loc[:10000, ['Oyuncu_Overall_Sınıfı', 'Overall']]

data.boxplot(column='Overall', by='Preferred Foot')
data.dropna()
plt.show()