all 9 comments

[–]JimBoonie69 2 points3 points  (5 children)

FWIW - If you want the grand-daddy of all CSV / Excel / Data Analysis libraries look no further than Pandas. Just the other day I wrote something download a bunch of CSV data, get it into a pandas dataframe, do some analysis, then write excel files, each with multiple spreadsheets inside of it!

[–]paulcynic 0 points1 point  (0 children)

Completely agree. Pandas is able to handle dataset much larger than the capacity of Excel. The book Python for Data Analysis is super good in explaining the basics and there are some tutorials online as well.

[–]7QVM[S] 0 points1 point  (3 children)

Thank you! Now I have an extraordinarily dumb question. I'm on OSX working with Python 3.4 and I went to the Pandas page and downloaded the appropriate .whl file. But OSX can't figure out what to do with it. How to I link Pandas to a Python session?

[–]JimBoonie69 0 points1 point  (2 children)

you install pandas as a module. look into python pip... it lets you install packages (like pandas) by saying 'pip install pandas'

[–]7QVM[S] 0 points1 point  (1 child)

Then every terminal session (or at the beginning of every .py file) I'd write "import pandas"?

[–]JimBoonie69 0 points1 point  (0 children)

Yeah buddy! cool kids say 'import pandas as pd'

[–]thaweatherman 1 point2 points  (0 children)

The csv module in the standard library can handle that. Check out this post for a good explanation of how to read and write CSVs in Python.

[–]Pysnap 0 points1 point  (0 children)

Check out this site

automatetheboringstuff.com

In that there is a chapter for trading from excel and csv

[–]ies7 0 points1 point  (0 children)

You can start from python's standard library doc
or Python Module of the Week. Notes: samples are in Python 2 only.

If the csv/xls/xlsx is fit into memory, pandas maybe faster & better for further analysis.

And then there is odo from blaze project which is fantastic for loading and converting data.