Setting column dtypes | TypeError: float() argument must be a string or a number, not 'Tag' #3
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
What?
Issue: converting column that's supposed to be float to float.
Error in short...
FileNotFoundError: [Errno 2] No such file or directory: 'data/niseko_hokkaido_prefecture.parquet'
During handling of the above exception, another exception occurred:
TypeError: float() argument must be a string or a number, not 'Tag'
The above exception was the direct cause of the following exception:
ValueError: setting an array element with a sequence.
Where?
Specific line
airbnb/scrape.py
Line 365 in 6c1bd3d
Area of events
airbnb/scrape.py
Lines 347 to 383 in 6c1bd3d
Solution?
Thinking one of the scrape tags got changed in past few days and needs to be updated. If so, it'll be one of these functions (data collection / scrape functions).
Could start by looking at data for float columns and see which (if any) is/are weird. Could start by looking at tags on airbnb site and comparing to tags set for float columns.
Code to reproduce & full error...
Notebook: https://gist.github.com/gumdropsteve/801bad4b453b88b247c7d05b7bd5d488
Click here to see full error output
The text was updated successfully, but these errors were encountered: