Python Forum
read from txt. file in certain manner
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
read from txt. file in certain manner
#9
Ah, I tried double but I just realized there is just float here in Python.

Now, I get:
y.append(float(row[1]))

ValueError: could not convert string to float:

Sth wrong with the spaces?
Reply


Messages In This Thread
RE: read from txt. file in certain manner - by SchroedingersLion - Aug-07-2018, 12:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pandas read csv file in 'date/time' chunks MorganSamage 4 1,794 Feb-13-2023, 11:24 AM
Last Post: MorganSamage
  Can't read text file with pandas zinho 6 12,260 May-24-2020, 06:13 AM
Last Post: azajali43
  Read file Into array with just $0d as Newline lastyle 5 3,463 Feb-03-2020, 11:58 PM
Last Post: lastyle
  Read csv file from Yahoo Finance ian 3 4,755 Sep-22-2019, 06:47 AM
Last Post: ndc85430
  read complex file with both pandas and not Diedro 1 2,968 Jan-29-2019, 05:26 PM
Last Post: Larz60+
  Need help in framing data read from wav file Vishweshkumar 1 3,721 Feb-10-2017, 01:45 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

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