text_plain_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import seaborn as sns

inex = pd.read_csv('../input/incomeexpendmerged/MergedNew.csv')

inex.dtypes

leagues5 = inex.groupby(by=['League', 'Year'])['Expenditure', 'Arrivals', 'Income', 'Depatures', 'Balance'].sum()

leagues11 = inex[(inex['League'] == 'LaLiga') | (inex['League'] == 'Premier League') | (inex['League'] == 'Serie A') | (inex['League'] == 'Ligue 1') | (inex['League'] == 'Bundesliga')]
leagues11

f, ax1 = plt.subplots(figsize=(15, 8))
sns.set_style('whitegrid')
ax1 = sns.barplot(y='Arrivals', x='Year', hue='League', data=leagues11, estimator=sum, ci=False, palette=sns.color_palette('husl', 5))
ax1.bar_label(ax1.containers[2], color='black', size=15)
ax1.tick_params(labelsize=15)
plt.xticks(rotation=0, size=15)
plt.yticks(size=15)
plt.xlabel('Year', size=18)
plt.ylabel('Number of Transfers', size=18)
plt.title('Total Number of Players Transfered Per League [2011 to 2022]', size=20)