text_plain_output_1.png
import pandas as pd

import pingouin as pg

df = pd.read_csv('/kaggle/input/performance-data-on-football-teams-09-to-22/Complete Dataset 2.csv')

df.dtypes

pl = df[(df['League'] == 'Premier League') & (df['Rank'] == 1)][['League', 'Team', 'Start Season', 'End Season', 'Points', 'Wins']].reset_index(drop=True)

ll = df[(df['League'] == 'La Liga') & (df['Rank'] == 1)][['League', 'Team', 'Start Season', 'End Season', 'Points', 'Wins']].reset_index(drop=True)

print(f"Premier League Winner Points in 2009-2022 are normal -> {pg.normality(pl.Points.values)['normal'].values[0]}")
print(f"LaLiga Winner Points in 2009-2022 are normal -> {pg.normality(ll.Points.values)['normal'].values[0]}")