Using ContentManager for publishing and organizing data
You have already seen how the ContentManager
class can be used through the content
property of the GIS object to search for data. In Chapter 3, ArcGIS API for Python, you searched for data both within and outside of your organization.
The content
property can also be used to add data and publish it as a feature layer, and organize your data into folders within ArcGIS Online.
In this section, you will add data from a CSV, publish it, and move it to a folder by using the ArcGIS API for Python in an ArcGIS Pro Notebook.
Publishing data
When you publish data to ArcGIS Online or ArcGIS Enterprise, much of this is achieved within ArcGIS Pro. This is useful and convenient when you are publishing a map that contains all of your layers. However, it is less convenient when you want to publish a CSV, shapefile, or geodatabase, as you have to create the map in ArcGIS Pro to publish it. Using the ArcGIS API for Python, you...