Sep-10-2020, 06:05 AM
Hi everyone,
I have this Code that I use to extract values from a column but then I want to Count those values and Show them in plot_bokeh().
Here is the Code
Thanks in Advance
I have this Code that I use to extract values from a column but then I want to Count those values and Show them in plot_bokeh().
Here is the Code
e=df.F_MOTORID.str.extract(r'(\d{1,5})').squeeze().str.zfill(3).head(5) print(e)and this is how I want it to Show :
e=df.groupby('F_MOTORID').F_MOTORID.count().sort_values(ascending=False).head(14).plot_bokeh(kind='pie')but it Shows me the Count of normal values and not the extract ones.
Thanks in Advance