The bar chart (bar, barh) compares values across categories, while the histogram (hist) shows the distribution of a numeric variable by counting values in intervals. The number of intervals (bins) changes the look of the histogram. Bars must start at zero so as not to distort the differences.
Example
ax.bar(produits, ventes)
ax.hist(ages, bins=20)