Python Forum
html_table_parser_python3 KeyError odd behavior
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
html_table_parser_python3 KeyError odd behavior
#2
I’ve been doing some searching on my own since I posted. I think the problem is that I was not indexing properly and using loc when I should be using iloc.

Instead of df.iloc[row, col], which appears to be what I am trying to do, I was using df.loc[row][col], which uses labels rather than integer indices, hence the error. I will have to wait until I get home from work to verify this solves my problem, but if anyone wants to confirm for me before then, that would be appreciated. Thanks.
Reply


Messages In This Thread
RE: html_table_parser_python3 KeyError odd behavior - by idratherbecoding - Apr-13-2023, 12:53 PM

Forum Jump:

User Panel Messages

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