Ranking Ratios Based On Weighted Scores
Ranking Ratios Based On Weighted Scores
df = pd.DataFrame(data)
# Normalize the data (optional, but can be useful for comparing ratios
with different scales)
df_normalized = (df.iloc[:, 1:] - df.iloc[:, 1:].min()) / (df.iloc[:,
1:].max() - df.iloc[:, 1:].min())
print(df_ranked)
plt.figure(figsize=(10, 6))
plt.barh(df_ranked['Bank'], df_ranked['Weighted Score'])
plt.xlabel('Weighted Score')
plt.ylabel('Bank')
plt.title('Bank Ranking')
plt.show()