CDF plot overlay histogram in python
I have a dataframe called df['ProgressStep']
I would like to get overlaid CDF plot in histogram. Have tried 2 methods, neither one meet my target perfectly. please help to fine tune the code, either method is fine for me.
how can I do the following things: (1) add/edit plot title and Y axis title; (2) add/edit primary X axis title, for example, I want more granularity here; (3) for overlapped plots, add secondary X axis against histogram ; (4) show counts on each bin in histogram; (5) show quantiles table; (6) smooth the curve in matplotlib method
===================================================
seaborn method:
kwargs = {'cumulative': True}
ax= sns.distplot(df['ProgressStep'], bins = 10, kde_kws=kwargs)
seaborn plots
=====================================================
matplotlib method and plot:
df.hist('ProgressStep', bins = 15, histtype='step', cumulative=True, density=True)
df.hist('ProgressStep', bins = 15)
Topic matplotlib historgram seaborn pandas python
Category Data Science