On Fri, 2016-11-04 at 11:36 -0400, Dave Brondsema wrote:
> Adam Williams (or anyone),
> What are the best libraries for reading in Excel spreadsheets? I
> know you've
> talked about this before, and had recommendations for some libraries
> over others.
> At GiveCamp this weekend the "python team" will likely be doing a lot
> of XLS parsing, which is why I ask.
I ingest thousands of XLS files using xlrd. Works flawlessly - but you
still need to know the caveats of Excel.
The biggest GOTCHA is that there is no such thing as a DATE/DATETIME
type. Being a date is a STYLE on an numeric value. xldate_as_tuple is
your friend.
Second is that manually created documents can be confusing about what
is string and what is a number if the data entry person isn't paying
attention.
<
https://sourceforge.net/p/coils/coils-code/ci/master/tree/coils/logic/
workflow/formats/xls_reader.py#l71>
--
Adam Tauno Williams <mailto:
awil...@whitemice.org> GPG D95ED383
Systems Administrator, Python Developer, LPI / NCLA