Python Forum
Convert Strings to Floats
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Convert Strings to Floats
#3
You can try and use str.replace() using lambda function to convert all "," to "." and then try the astype method.Here is an article that describes conversion from Strings to lists and might help you
Reply


Messages In This Thread
Convert Strings to Floats - by samalombo - May-28-2020, 05:36 PM
RE: Convert Strings to Floats - by michael1789 - May-29-2020, 12:34 AM
RE: Convert Strings to Floats - by hussainmujtaba - Jun-08-2020, 10:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  convert a list of string+bytes into a list of strings (python 3) pacscaloupsu 4 13,222 Mar-17-2020, 07:21 AM
Last Post: markfilan

Forum Jump:

User Panel Messages

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