seaborn rotate xlabels

chart = sns.countplot(
    data=data[data['Year'] == 1980],
chart.set_xticklabels(chart.get_xticklabels(), rotation=45)

Here is what the above code is Doing:
1. We’re creating a figure with a size of 10×5.
2. We’re creating a countplot using Seaborn.
3. We’re specifying the data we want to use. In this case, we only want to use the data for 1980.
4. We’re specifying the x-axis data.
5. We’re specifying the color scheme.
6. We’re creating tick marks for our x-axis.
7. We’re specifying the rotation for our x-tick marks.