Re: print formating for matrix/table

2009-01-27 Thread Alan G Isaac
You could try SimpleTable: http://code.google.com/p/econpy/source/browse/trunk/utilities/text.py fwiw, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

print formating for matrix/table

2009-01-26 Thread Vincent Davis
I have a list of listsa matrix in that all sub lists are the same length. I there a nice why to prin these so that the columns and rows line up nicely? I have looked around for a good way to do this and haven't found one I am like. It seems that all involve repeating a print for each line. I

Re: print formating for matrix/table

2009-01-26 Thread Robert Kern
On 2009-01-26 18:18, Vincent Davis wrote: I have a list of listsa matrix in that all sub lists are the same length. I there a nice why to prin these so that the columns and rows line up nicely? I have looked around for a good way to do this and haven't found one I am like. It seems that all

Re: print formating for matrix/table

2009-01-26 Thread Vincent Davis
I do have numpy but am using lists as did not need any functions of array. Well maybe print now. I am new to python and don't really know the details about the difference between lists and arrays. I do know that there are different/additional functions available for arrays.Anyway is this the best

Re: print formating for matrix/table

2009-01-26 Thread Steve Holden
Vincent Davis wrote: I have a list of listsa matrix in that all sub lists are the same length. I there a nice why to prin these so that the columns and rows line up nicely? I have looked around for a good way to do this and haven't found one I am like. It seems that all involve repeating

Re: print formating for matrix/table

2009-01-26 Thread Robert Kern
On 2009-01-26 19:55, Steve Holden wrote: Vincent Davis wrote: I have a list of listsa matrix in that all sub lists are the same length. I there a nice why to prin these so that the columns and rows line up nicely? I have looked around for a good way to do this and haven't found one I am

Re: print formating for matrix/table

2009-01-26 Thread Robert Kern
On 2009-01-26 19:53, Vincent Davis wrote: I do have numpy but am using lists as did not need any functions of array. Well maybe print now. I am new to python and don't really know the details about the difference between lists and arrays. I do know that there are different/additional functions

Re: print formating for matrix/table

2009-01-26 Thread Vincent Davis
I called it a matrix mostly because this is how I am visualizing it. They are full of numbers but only as representatives of students and schools. It looks like pprint will work after I read the instructions. At least I know where to look now. In the end I need to figure out how to save the data a