dbf remove fields.

Ethan Furman ethan at stoneleaf.us
Fri Apr 22 14:32:43 EDT 2016


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~




More information about the Python-list mailing list