I need to show a histogram of a dataframe variable in Python, I need to show a histogram of how many people have a music album. I did this:
import seaborn as sns
import matplotlib.pyplot as plt
sns.set()
_ = plt.hist(agrupa['have'])
_ = plt.xlabel('Albumes')
_ = plt.ylabel('Número de álbumes que tienen los usuarios')
plt.show()
My problem is that the axes are not correct. I must show albumes in the x axes, but I got and error