Hello everyone! I created a feature class and I'm trying to update the attribute table with cursors. I created a list of coordinates (LatY) that I want to input into the "Latitude" column on my table, code works, however, my table isn't updating.
I'm attaching my code plus a screenshot of my table. I appreciate the help!!
PD: I know I can update those fields in an easier way, but the purpose of my project is to create everything using code

import arcpy
import numpy as np
import pandas as pd
arcpy.env.workspace = r"C:\Users\andre\Desktop\Project\NewCores"
fc2 = r"C:\Users\andre\Desktop\Project\NewCores.shp"
field1 = ["Core_ID"]
field2 = ["Latitude"]
field3 = ["Longitude"]
field4 = ["Depth"]
arcpy.AddField_management(fc2, "Core_ID","TEXT")
arcpy.AddField_management(fc2, "Latitude","LONG")
arcpy.AddField_management(fc2, "Longitude","LONG")
LatY = (30.11386111,30.11369444,30.11380556,30.109,30.11022222,30.11175,
30.10355556,30.10380556,30.10352778,30.10366667,30.10558333,30.10436111)
#Write code to get latitude
cursor = arcpy.da.UpdateCursor(fc2, field2)
for row in cursor:
if row[0] in LatY:
row[1] = LatY[row[0]]
cursor.updateRow(row)
del cursor