Columns and Rows in Excel

wittempj@hotmail.com martin.witte at gmail.com
Mon Dec 19 03:19:55 EST 2005


In Python you probaly best follow a recipe like this.

1 Save the file in Excel as a csv file.
2.Study the reader object of Python's csv module :
http://docs.python.org/lib/module-csv.html
3. Read a row for row in in a list, split it on comma, count the
elements, the maximum of all these is the number of columns you look
for.
4. The number of rows you read is the number of rows in the sheet.




More information about the Python-list mailing list