ValueError: could not convert the string to float - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Data Science (https://python-forum.io/forum-44.html) +--- Thread: ValueError: could not convert the string to float (/thread-10936.html) |
ValueError: could not convert the string to float - Grin - Jun-13-2018 Any help much appreciated: from sklearn import preprocessing btc.dropna(inplace=True) X=btc.drop('Price_After_Month',axis=1) X=preprocessing.scale(X) y=btc['Price_After_Month']
RE: ValueError: could not convert the string to float - DeaD_EyE - Jun-14-2018 Please use Code Tags. You can edit your post. RE: ValueError: could not convert the string to float - Grin - Jun-14-2018 (Jun-14-2018, 07:31 AM)DeaD_EyE Wrote: Please use Code Tags. done, any help appreciated. RE: ValueError: could not convert the string to float - killerrex - Jun-14-2018 Check your input file or result of a request. Numpy is expecting a list of float values and have found the string "bitcoin"... The problem is in the sklearn code, so you must check if there is a new version of the module or something you shall call to initialise. |