image_output_1.png
import pandas as pd

import seaborn as sns

battle = pd.read_csv('/kaggle/input/games-of-thrones/battles.csv')

battle.shape

battle.rename(columns={'attacker_1': 'primary_attacker'}, inplace=True)

battle.rename(columns={'defender_1': 'primary_defender'}, inplace=True)

sns.set(rc={'figure.figsize': (13, 5)})
sns.barplot(x='attacker_king', y='attacker_size', data=battle)
plt.show()