cancel
Showing results for 
Search instead for 
Did you mean: 
intapiuser
Community Team Member
Community Team Member
Plot.Hist( ) is a very useful function for creating histograms in Python. However, this is ultimately a bar chart that can be graphed by Sisense for Cloud Data Teams as well, and would better match other charts on the dashboard. The data generated by Plot.Hist( ) can be broken out into the underlying data to be graphed like this:
(n2, bins2, patches) = plt.hist(datatable, 50)
bins2=bins2[:-1] #to remove the extra bin label
df = pd.DataFrame({'n2':n2, 'bins2':bins2})
periscope.output(df)
For more information on plot.hist() itself, you can find the documentation page here:
https://matplotlib.org/api/_as_gen/matplotlib.pyplot.hist.html
Rate this article:
Version history
Last update:
‎03-02-2023 09:00 AM
Updated by:
Contributors