My code is currently this- Using a date set I have created!
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import os
desired_width=420
pd.set_option('display.width', desired_width)
np.set_printoptions(linewidth=desired_width)
pd.set_option('display.max_columns',6)
Data = pd.read_csv("/Volumes/DYLAN USB/Excel/DataSheets/Data Passing Feb EPL 202021.csv",index_col=0)
print(Data.head(20))
fig, ax = plt.subplots()
Data = Data.sort_values('Total Pass Completion %', ascending=False)
ax.bar(Data.Team, Data['Total Pass Completion %'])
ax.set_xticklabels (Data.Team, rotation=90, horizontalalignment = 'right', fontsize = '12')
ax.set_title ('League Ranking and Points- EPL 2020/21 February', fontsize =22)
ax.set_ylabel ('Pass Completition %')
ax.set_xlabel ('Team Name')