How can I change strings into floats in regression? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I change strings into floats in regression?

Using linear regression for weather forecasting

29th Jun 2021, 7:21 AM
Abhi
6 Answers
0
float('string') ex: float('12.5') It throws error if conversion not possible. Is it not working?
29th Jun 2021, 1:13 PM
Jayakrishna 🇮🇳
0
Nope it isn't
29th Jun 2021, 1:18 PM
Abhi
0
It is better to show what are you trying and for what float value ,you need conversion and expected output.. then you may get your desired answer.. tq..
29th Jun 2021, 1:38 PM
Jayakrishna 🇮🇳
0
Okay, how can I show you then?
29th Jun 2021, 1:39 PM
Abhi
0
Where are you trying ..? You can save code in playground and share link here with details added. . Or for small code, you can post your try here directly as you typing ..... or from other sources, you can take screen shot and upload to feed post of SL and share link here (if image is clearly visible)...
29th Jun 2021, 1:43 PM
Jayakrishna 🇮🇳
0
Okay
29th Jun 2021, 1:43 PM
Abhi