Hi,
I have a hosted feature layer in AGOL that contains 209 layers of asset types.
I want to export the assets to an asset register that resides in a hosted table in AGOL.
To do this I loop through the asset layers and append them to a pandas dataframe containing a subset of the common fields in the asset layers. All the layers' data are then in one dataframe.
I then want to append this dataframe to the hosted table. The table must be truncated and appended each time the script is run. I already have the code to truncate the table but now I'm struggling with the append part.
The intention is for the script to be run as an AGOL notebook. Most of the examples I have found require a local CSV version of the dataframe that then gets re-published to AGOL.
1. Is it possible to bypass the local CSV and just append the dataframe directly to the hosted table? Perhaps with an insert cursor?
2. If not, how does the local file work if one is running the notebook from inside AGOL? How do you specify where the local file is supposed to be?
Thanks
Hanlie