tick labels vertical matplotlib

plt.xticks(rotation=45)

Here is what the above code is Doing:
1. We’re creating a figure with a size of 8×6 inches.
2. We’re creating a bar plot with the data from the “grouped” dataframe.
3. We’re setting the x-axis to the “name” column from the “grouped” dataframe.
4. We’re setting the y-axis to the “price” column from the “grouped” dataframe.
5. We’re setting the title to “Average Price by Country”.
6. We’re setting the x-axis label to “Country”.
7. We’re setting the y-axis label to “Average Price”.
8. We’re rotating the x-ticks by 45 degrees.