I'm trying to find and update all empty attributes for all fields in shapefile with "-" by iterate through all fields in shapefile to find which fields are empty.
I tried tp update all empty attributes using the UpdateCursor and it is not done
import arcpy from arcpy import env import os # Set the workspace for the ListFeatureClass function env.workspace = "c:/base" fcList = arcpy.ListFeatureClasses() for fc in fcList: fields = arcpy.ListFields(fc) for field in fields: with arcpy.da.UpdateCursor(fc2, field) as cursor: for row in cursor: **#here I donot know how to check blank values in all feileds#**
I am struck here and from here I don't know how to iterate all rows in all fields and update all empty rows with "-".
I am attaching example