I am trying to so a countplot using seaborn of this dataframe :
ax = sns.countplot(x="OPP_SOURCE", hue="target", data=df)
plt.show()
So as you see in the image the value of X axis are not clear any help?
thank you
I am trying to so a countplot using seaborn of this dataframe :
ax = sns.countplot(x="OPP_SOURCE", hue="target", data=df)
plt.show()
So as you see in the image the value of X axis are not clear any help?
thank you
You should try the following:
1. rotate the x-axis labels
2. change aspect ratio by specifying size and aspect. The default aspect is 1, but try changing to 2.
ax = sns.countplot(x="OPP_SOURCE", hue="target", data=df, size=4, aspect = 2)
ax.set_xticklabels(rotation=30)
plt.show()