Re: How to read columns in python

2009-02-24 Thread Steve Holden
Dhananjay wrote: > Well, > > The three columns are tab separated and there are 200 such rows having > these 3 columns in the file. > > First two columns are x and y coordinates and third column is the > corresponding value. > > I want to read this file as a matrix in which column1 correspond to

Re: How to read columns in python

2009-02-23 Thread Dhananjay
Well, The three columns are tab separated and there are 200 such rows having these 3 columns in the file. First two columns are x and y coordinates and third column is the corresponding value. I want to read this file as a matrix in which column1 correspond to row, column2 corresponds to columns

Re: How to read columns in python

2009-02-23 Thread Chris Rebert
On Mon, Feb 23, 2009 at 10:41 PM, Dhananjay wrote: > I am bit new to python and programming and this might be a basic question: > > I have a file containing 3 columns. Your question is much too vague to answer. What defines a "column" for you? Tab-separated, comma-separated, or something else alt

How to read columns in python

2009-02-23 Thread Dhananjay
I am bit new to python and programming and this might be a basic question: I have a file containing 3 columns. first two columns are x and y axes and third column is their corresponding values in the graph. I want to read this in a matrix as well as plot in 2D. Could anyone tell me how to do so