Using " instead of inches in a field

1444
11
01-24-2020 11:05 AM
JimNoble
New Contributor III

Hi guys, I am trying to calculate a field to read 2" HDPE in every row

#Calculate field Conduit feature class Underground
arcpy.CalculateField_management("Underground.dbf", "Conduit",
                                '"2in HDPE"', "PYTHON3")

With this I can get every row to read 2in HDPE but everytime I try to insert " instead of in I get an error. Could you guys help me please!

Thanks!

-Jim Noble

0 Kudos
11 Replies
JoeBorgione
MVP Emeritus

I offered that just as another example. If you plug it into a field calculator replacing s with !YourFieldName! It ought to work. Python offers many ways to skin a cat...

That should just about do it....
0 Kudos
JimNoble
New Contributor III

Thanks Joe!

0 Kudos