Python Forum
plot the mean in a bar diagram
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
plot the mean in a bar diagram
#4
Oh! In your post, you are showing the file content. Well, why do you split by comma where the values are separated by space? There is no comma, so there is no splitting of the line and you get the whole line - one value.

And why zip()? You get already a list of two values which you can unpack.
>>> line = "4 8"
>>> line.split()
['4', '8']
The last one is stupig. Don't pay attention on it. :D
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
plot the mean in a bar diagram - by sussii - May-23-2018, 03:47 PM
RE: plot the mean in a bar diagram - by wavic - May-23-2018, 11:11 PM
RE: plot the mean in a bar diagram - by sussii - May-23-2018, 11:18 PM
RE: plot the mean in a bar diagram - by wavic - May-23-2018, 11:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to simulate this block diagram with python control library? nugrohoav 1 6,357 May-21-2017, 12:39 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