Python Forum
Indirectlty convert string to float in JSON file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Indirectlty convert string to float in JSON file
#5
You are so fast :) :) :), I was about to edit because I found out the 2 steps "with open" way.

Thank you for optimization also, I'd rather make more steps in order to understand better what I do...

When you convert to float, what does strip() does (which I don't do in my version?)

Regards,
Reply


Messages In This Thread
RE: Indirectlty convert string to float in JSON file - by WBPYTHON - May-06-2020, 11:36 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Parse Nested JSON String in Python rwalde 4 5,546 Sep-08-2022, 10:32 AM
Last Post: rwalde
Sad ValueError: could not convert string to float badju 0 5,578 Jul-01-2021, 12:13 AM
Last Post: badju
  HELP! Importing json file into csv into jupyter notebook vilsef 2 3,551 Jan-22-2021, 11:06 AM
Last Post: snippsat
  JSON file Loading issue punna111 4 10,792 Jun-29-2020, 08:07 AM
Last Post: buran
  ValueError: could not convert string to float RahulSingh 3 5,563 Apr-09-2020, 02:59 PM
Last Post: dinesh
  convert a list of string+bytes into a list of strings (python 3) pacscaloupsu 4 13,484 Mar-17-2020, 07:21 AM
Last Post: markfilan
  Help batch converting .json chosen file to MySQL BrandonKastning 2 3,134 Mar-14-2020, 09:19 PM
Last Post: BrandonKastning
  Convert dataframe string column to numeric in Python darpInd 1 3,065 Mar-14-2020, 10:07 AM
Last Post: ndc85430
  convert 'A B C' to numpy float matrix rezabma 4 3,861 Feb-27-2020, 09:48 AM
Last Post: rezabma
  ValueError: could not convert string to float: '4 AVENUE' Kudzo 4 7,755 Jan-26-2020, 10:47 PM
Last Post: Kudzo

Forum Jump:

User Panel Messages

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