I'd like to avoid text overlapping in the next graphic:
import matplotlib.pyplot as plt
import seaborn as sns
bar_barris = sns.countplot(y=df2['Nom_Barri'])
bar_barris.set_yticklabels(bar_barris.get_yticklabels(), rotation=40, ha="right")
plt.show()
The output of the code is as follows: