Python Forum
How to couunt extracted values ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to couunt extracted values ?
#1
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

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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  instaloaders problem: search certain hashtag - posts without hashtag extracted ledgreve 0 2,123 Nov-18-2019, 01:22 PM
Last Post: ledgreve
  IFC entities extracted twice gurbhej_singh 15 6,694 Apr-13-2019, 08:38 PM
Last Post: gurbhej_singh

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020