Python Forum
Overwhelmed with error message using pandas drop()
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Overwhelmed with error message using pandas drop()
#2
instead of line 8, try:

data = data[data['state'] == 'Tx']
or
data = data[data.state == 'Tx']
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
RE: Overwhelmed with error message using pandas drop() - by buran - Feb-18-2021, 07:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Error message about iid from RandomizedSearchCV Visiting 2 1,057 Aug-17-2023, 07:53 PM
Last Post: Visiting
  pyarrow error when importing pandas sravva 1 979 Jun-06-2023, 05:09 PM
Last Post: snippsat
  Another Error message. the_jl_zone 2 1,011 Mar-06-2023, 10:23 PM
Last Post: the_jl_zone
  Mysql error message: Lost connection to MySQL server during query tomtom 6 16,327 Feb-09-2022, 09:55 AM
Last Post: ibreeden
  understanding error message krlosbatist 1 1,943 Oct-24-2021, 08:34 PM
Last Post: Gribouillis
  pandas.errors.ParserError: Error tokenizing data. C error: Expected 9 fields in line Anldra12 9 15,528 Jun-15-2021, 08:16 AM
Last Post: Anldra12
  Error message pybits 1 46,285 May-29-2021, 10:26 AM
Last Post: snippsat
  f-string error message not understood Skaperen 4 3,393 Mar-16-2021, 07:59 PM
Last Post: Skaperen
  Winning/Losing Message Error in Text based Game kdr87 2 3,034 Dec-14-2020, 12:25 AM
Last Post: bowlofred
  Don't understand error message Milfredo 2 2,085 Aug-24-2020, 05:00 PM
Last Post: Milfredo

Forum Jump:

User Panel Messages

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