Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #28087
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <raf@pooka.fabcat.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'subject:: [': 0.03; 'importing': 0.04; 'formatting': 0.07; ':-(': 0.09; 'dropdown': 0.09; 'objects.': 0.09; 'subject:skip:f 10': 0.09; 'throw': 0.09; 'subject:not': 0.11; ':-)': 0.13; 'enough.': 0.16; 'formats.': 0.16; 'formula': 0.16; 'investigate': 0.16; 'need:': 0.16; 'number?': 0.16; 'to:name:python list': 0.16; 'url:packages': 0.16; 'xlrd': 0.16; 'wrote:': 0.17; 'handles': 0.18; 'subject:] ': 0.19; 'module': 0.19; 'bit': 0.21; 'simpler': 0.22; 'cheers,': 0.23; 'to:2**1': 0.23; 'header:In-Reply-To:1': 0.25; 'values': 0.26; 'instead.': 0.27; "doesn't": 0.28; 'perl': 0.29; 'maybe': 0.29; 'lists': 0.31; 'point': 0.31; 'gets': 0.32; 'url:python': 0.32; 'suggestion': 0.32; 'info': 0.32; 'hopefully': 0.33; 'like:': 0.33; 'received:114': 0.33; 'subject: .': 0.33; 'to:addr:python-list': 0.33; 'excel': 0.33; 'another': 0.33; 'that,': 0.34; 'wrong': 0.34; 'thanks': 0.34; 'formats': 0.35; 'there': 0.35; 'received:org': 0.36; 'but': 0.36; 'url:org': 0.36; 'modules': 0.36; 'charset:us-ascii': 0.36; 'possible': 0.37; 'does': 0.37; 'option': 0.37; 'data': 0.37; 'files': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'subject:-': 0.40; 'header:Received:5': 0.40; 'your': 0.60; 'from:no real name:2**0': 0.60; 'john': 0.60; 'content-disposition:inline': 0.60; 'most': 0.61; 'personally': 0.61; 'url:5': 0.61; 'url:index': 0.61; 'needing': 0.62; 'provide': 0.62; 'receive': 0.71; 'saving': 0.72; 'day': 0.73; 'subject:True': 0.93 |
| X-Virus-Scanned | Debian amavisd-new at pooka.fabcat.org |
| Date | Thu, 30 Aug 2012 12:57:58 +1000 |
| From | python-excel@raf.org |
| To | python-excel@googlegroups.com, Python List <python-list@python.org> |
| Subject | Re: [pyxl] xlrd-0.8.0 .xlsx formatting_info=True not implemented |
| Mail-Followup-To | python-excel@googlegroups.com, Python List <python-list@python.org> |
| References | <501944E4.2090902@simplistix.co.uk> <CA+GpVts=-cmJutJxM2KYC-oZ3+FyKpZ5WLzubtUiOY9Nu7Mxiw@mail.gmail.com> <5c84fd3b-c899-4703-867d-ddbc5d1746de@googlegroups.com> <20120829021646.GA8163@raf.org> <CAA2zXtBmev_8w60d236FhxESKNyp3mVRfiv9vqNZ7bWrW9R3=Q@mail.gmail.com> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| In-Reply-To | <CAA2zXtBmev_8w60d236FhxESKNyp3mVRfiv9vqNZ7bWrW9R3=Q@mail.gmail.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3955.1346295493.4697.python-list@python.org> (permalink) |
| Lines | 40 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1346295493 news.xs4all.nl 6979 [2001:888:2000:d::a6]:41346 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:28087 |
Show key headers only | View raw
John Yeung wrote: > > is there any other way to tell how many digits excel would round to > > when displaying a floating point number? that's my only reason for > > needing formatting_info=True. > > I have not personally used it, but OpenPyXL is another option for > working with .xlsx files, and it might provide the formatting info you > need: > > http://packages.python.org/openpyxl/index.html > http://pypi.python.org/pypi/openpyxl/1.5.8 > > John Y. thanks but openpyxl doesn't work well enough. most of the spreadsheets i need to read contain dropdown lists with data validation using a named formula like: OFFSET(Data!$K$2,0,0,COUNTA(Data!$K:$K),1) which causes openpyxl to throw a NamedRangeException. i don't even care about the named objects. i just want to know what's in the cell, not what other possible values the cell might have had. :-) apart from that, it does give access to number formats so your suggestion would work for simpler spreadsheets. hopefully the intention that xlrd not support formats in xlsx files will change one day into an intention to support them. :-) until then my users can keep manually saving xlsx files they receive as xls before importing them. :-( maybe i need to investigate some perl modules or pyuno instead. perl's Spreadsheet::XSLX module handles formats. it gets the date formats a bit wrong but it's workaroundable. cheers, raf
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: [pyxl] xlrd-0.8.0 .xlsx formatting_info=True not implemented python-excel@raf.org - 2012-08-30 12:57 +1000
csiph-web