'Python- data of x ticklable is so many

When I am using Seaborn to make a graph, the data of x ticklabels is so many then becomes black and cant see the value. How to solve? I am new of python.

sns.catplot(data=df,kind='bar',x='Income',y='NumTotalPurchases',ci=None) ax.set_xticklabels(['0','20000','40000','60000','80000','100000'],rotation = 30)

enter image description here



Solution 1:[1]

You could try some binning techniques using pandas qcut and cut.

qcut/cut

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Deepak