Here's what I'm trying to do.
I have a shapefile called 'Roster' with an attribute table like the one below.
I would like to search the shapefile and delete any data under the field 'NAME' where the string starts with '***'
The resulting table would look like this
I figured out how to replace the '***' string with another string, but I can't figure out how to delete the entire cell....
def removeName(shapefilePath): cursor = arcpy.da.UpdateCursor(shapefilePath, ["NAME"]) for row in cursor: row = row.replace("***", None) cursor.updateRow(row) del row del cursor