Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'float' object has no attribute 'strip' #13

Open
matteodefelice opened this issue Jan 19, 2021 · 0 comments
Open

'float' object has no attribute 'strip' #13

matteodefelice opened this issue Jan 19, 2021 · 0 comments

Comments

@matteodefelice
Copy link

I get an error when launching the script with python 3.8.5
Traceback (most recent call last):
File "h2_iea.py", line 53, in
raw["_name"] = raw.name.str.lower().map(lambda x: x.strip())
File "C:\Users\matte\miniconda3\envs\pydev\lib\site-packages\pandas\core\series.py", line 3879, in map
new_values = super()._map_values(arg, na_action=na_action)
File "C:\Users\matte\miniconda3\envs\pydev\lib\site-packages\pandas\core\base.py", line 937, in _map_values
new_values = map_f(values, mapper)
File "pandas_libs\lib.pyx", line 2467, in pandas._libs.lib.map_infer
File "h2_iea.py", line 53, in
raw["_name"] = raw.name.str.lower().map(lambda x: x.strip())
AttributeError: 'float' object has no attribute 'strip'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant