Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Ethan Furman Newsgroups: comp.lang.python Subject: Re: dbf remove fields. Date: Fri, 22 Apr 2016 11:32:43 -0700 Lines: 23 Message-ID: References: <018601d19cbd$30440090$90cc01b0$@churchs.com.mx> <571A6D67.2080502@stoneleaf.us> <571A6E4B.9090501@stoneleaf.us> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de az28/vEkvLncxKm+ySwfKwuRWjF97YH2oPg23maT9+qg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'url:pypi': 0.03; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'none.': 0.09; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:remove': 0.16; 'yup,': 0.16; 'wrote:': 0.16; 'string': 0.17; 'handles': 0.20; 'am,': 0.23; 'tried': 0.24; 'header:In- Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'error': 0.27; 'values': 0.28; 'table,': 0.29; '~ethan~': 0.29; 'convert': 0.29; "i'm": 0.30; 'checked': 0.31; 'problem': 0.33; 'url:python': 0.33; 'values.': 0.33; 'could': 0.35; 'filter': 0.35; 'but': 0.36; 'there': 0.36; 'url:org': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'two': 0.37; "won't": 0.38; 'sure': 0.39; 'to:addr:python.org': 0.40; 'charset:windows-1252': 0.62; '****': 0.66; 'float:': 0.72; 'package?': 0.84; 'ethan': 0.91; 'furman': 0.91 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: <571A6D67.2080502@stoneleaf.us> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <571A6E4B.9090501@stoneleaf.us> X-Mailman-Original-References: <018601d19cbd$30440090$90cc01b0$@churchs.com.mx> <571A6D67.2080502@stoneleaf.us> Xref: csiph.com comp.lang.python:107507 On 04/22/2016 11:28 AM, Ethan Furman wrote: > On 04/22/2016 10:34 AM, Ricardo Aguilar wrote: > >> Hi there i try to remove to fields in dbf table, how I can remove two >> fields? >> >> I wanna to remove because I have this error "ValueError: could not >> convert >> string to float: ****" But I no need this field. > > Have you tried my dbf package? > > https://pypi.python.org/pypi/dbf > > I'm pretty sure it handles such values. Yup, just checked -- it transforms invalid **** values to None. Since you're not using those fields that won't be a problem (otherwise you would have filter them out). -- ~Ethan~