Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: 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; 'binary': 0.05; 'versions,': 0.05; 'completeness': 0.07; 'python': 0.09; 'get.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:using': 0.09; 'undocumented': 0.09; 'subject:python': 0.11; '"features"': 0.16; 'it..': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'reliably': 0.16; 'fix': 0.17; 'engineering,': 0.22; "python's": 0.23; 'header:User-Agent:1': 0.26; '(such': 0.27; 'options': 0.27; 'header:X-Complaints-To:1': 0.28; 'subject:some': 0.29; 'writes:': 0.29; 'mode': 0.30; 'code': 0.31; 'file': 0.32; 'could': 0.32; 'extract': 0.33; 'subject:data': 0.33; 'values.': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'excel': 0.33; 'received:org': 0.36; 'subject:with': 0.36; 'charset:us-ascii': 0.36; 'author': 0.37; 'two': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'things': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'remove': 0.61; 'export': 0.62; 'between': 0.63; 'email addr:gmail.com': 0.63; 'reverse': 0.65; 'received:217': 0.68; 'you:': 0.75; 'subject:.. ': 0.84; 'subject:value': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: dieter Subject: Re: Im fetching data from excel using python code.. i could see some junk value also with it. Date: Sat, 16 Mar 2013 07:50:34 +0100 References: <0fa3b412-b9e8-4312-8cb4-db3ba3b3b2ca@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gmane-NNTP-Posting-Host: pd9e08254.dip0.t-ipconnect.de User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux) Cancel-Lock: sha1:BAyxlOnusrh/3uI5MSxsiKhRrCE= X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1363416653 news.xs4all.nl 6958 [2001:888:2000:d::a6]:37014 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41302 s.arun316@gmail.com writes: > Hi im fetching data from excel using python code.. i could see some junk value also with it. like [text:u > > How to remove it.. below is the code It is very difficult to extract data reliably from an undocumented binary format (such as "excel" files): things can change between versions, some "features" may be used only in particular situations difficult to get at by reverse engineering, lacking a complete documentation completeness is difficult to get. I see two options for you: * send a problem report with your data to the "xlrd" author He may know how to fix it. * Tell "excel" to export the file to "csv" and use Python's "csv" mode to read the values.