Python Forum
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Value_Counts Question
#1
I hope you are all having a good day. I have a question in regards to the value_counts method. Why does the following code not work:


sal[sal['JobTitle'].value_counts()==1]

The error message is: 


IndexingError: Unalignable boolean Series key provided
Reply


Messages In This Thread
Value_Counts Question - by smw10c - Mar-28-2017, 02:40 PM
RE: Value_Counts Question - by nilamo - Mar-28-2017, 02:54 PM
RE: Value_Counts Question - by smw10c - Mar-28-2017, 03:16 PM
RE: Value_Counts Question - by zivoni - Mar-28-2017, 07:38 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  AttributeError: 'collections.OrderedDict' object has no attribute 'value_counts Kristenl2784 4 7,395 Jul-17-2020, 01:50 AM
Last Post: palladium

Forum Jump:

User Panel Messages

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