Using Arcpy in Python, I would like to return / print '0.15' from the following table:
When I use the following code I get "(u'D', 0.20)" as my print statement in Python:
import arcpy
fc = "C:/Users/.../table_test2"
q = 'C'
with arcpy.da.SearchCursor(fc, ['Index_Score'], where_clause=q) as cursor:
print row
(u'D', 0.20)
This is not what I am looking for as I am looking for the value '0.15'.
When I tried changing my query statement 'q' to: q = '"SA_ALL" = "C"' I get the error:
" Traceback (most recent call last):
File "<pyshell#143>", line 2, in <module>
for row in cursor:
RuntimeError: An expected Field was not found or could not be retrieved properly. [table_test2]"
Can someone help me and explain what I am doing wrong? Also what does the 'u' mean in my first returned print statement?