Lo que necesitas es un ActualizarCursor .
La función UpdateCursor crea un cursor que permite actualizar o eliminar filas en la clase de característica, archivo shape o tabla especificados. El cursor cursor coloca un bloqueo en los datos que permanecerá hasta que el script finalice o se elimine el objeto cursor de actualización.
Su código sería algo parecido a lo siguiente:
import arcpy
# Create update cursor for feature class
#
rows = arcpy.UpdateCursor("path_to_your_data_here")
for row in rows:
# Fields from the table can be dynamically accessed from the row object.
# Here, the field is named targetField as I don't know your field name
targetRow = row.targetField #Assigns value of targetField to string
row.targetField = targetRow.translate(None, '-') #Removes the dashes
rows.updateRow(row)
# Delete cursor and row objects to remove locks on the data
#
del row
del rows
Si no tiene ArcPy, puede utilizar dbfpy para acceder directamente y editar los atributos del archivo dbf del archivo shape. La sintaxis es bastante simple:
from dbfpy import dbf
db = dbf.Dbf("your_file.dbf")
#Editing a value, assuming you want to edit the first field of the first record
rec = db[0]
rec["FIRST_FIELD"] = "New value"
rec.store()
del rec
db.close()