Hi Karthik,
I cannot find any problem with your code. You are mixing modules a little
too much to my taste but it's not a technical problem.
Loading and saving the data works flawless here. Attached is an infile and a
modified script, please try this.
2011/6/11 Karthikraja Velmurugan
> *Hi Dan
*Hi Daniel, *
* *
*I used the code but there is small issue. I forgot to mention that my
values are signed and unsigned decimal values. *
*My values look like this
*
0.0023 -0.0456 0.0419 0.094 -0.0004 0.0236 -0.0237 -0.0043 -0.0718 0.0095
0.0592 -0.0417 0.0023 0.0386 -0.0023 -0.0236 -0.1045 0
Hi,
have you tried the examples that I have provided a couple days ago,
see below? I cannot see why it should not work. These are the absolute
basics that you need to understand.
Btw, there is no need to use csv2rec unless you want/need column or row headers.
Here's a full script that does what
Hello guys,
I was able to plot when I only had 1 column. But now I have a CSV file that
has 10,000 rows and 12 columns. I am trying to write a code to plot all
these 12 columns into 12 subplots of one graph. Below found is my code for
just one column in one csv file. BTW csv2rec does not work in m
Hi,
the content of the CSV is stored as an array after reading. You can
simply access rows and columns like in Matlab:
firstrow = a1[0]
firstcol = a1.T[0]
The .T transposes the array.
The second element of the third row would be
elem32 = a1[2][1]
which is equivalent to
elem32 = a1[2,1]
A rang
Hello Daniel,
The code you have given is simple and works fab. Thank you very much. But I
wasn't able to find an example which accesses the columns of a CSV files
when I import data through "datafile="filename.csv"" option. It will be
great if you could help with accessing individual columns. What
Hi,
firstly, I do not fully understand why you have chosen such a complicated
solution to a rather simple problem. If the data in your file really is like
the example then you could simply put the file 'ch1.csv' into the same
directory as your Python script.
I have slightly modified it (I don't l
Hello friends,
I am a newbee to matplotlib and I am trying to plot (scatter plot) some
values. The data is quite big and I have them in a CSV file. For a starter I
thought I will use loadrec.py example to see if I am able to import the data
from the CSV file. The loadrec.py goes like this: