AnsweredAssumed Answered

Save spatially dataframe back to the original feature class?

Question asked by dcafdg on May 6, 2020
Latest reply on May 7, 2020 by dcafdg

I created a spatially enabled dataframe from a FGDB feature class using pandas.DataFrame.spatial.from_featureclass(). After that, my code is doing (non-spatial) field calculations with Pandas, but the structure of the data doesn't fundamentally change. It is easier to do that way than jamming a complex Python code block into the field calculator.


My question is - Once I'm done with what I need to do, is there a way to save the result back to the original feature class? The ArcGIS API for Python docs have a section on saving the spatially enabled dataframe. There are instructions on saving to a FGDB feature class, but the options are really more like export (or save as) than save. I'd prefer to just keep working in the same feature class I started in. 


Right now, I'm thinking the easiest way is to convert to numpy and use arcpy.da.ExtendTable. Is there a more straightforward way to do this?