Is ArcGIS's arcpy code compatible with ArcGIS Pro?
I'm planning to study arcpy using the reference book “Python Script for ArcGIS,” but since I'm using ArcGIS Pro, I want to know if the Python code in the reference book can be used in ArcGIS Pro.
Could someone please tell me?
you would be better off using a more recent edition because of the changes associated with the switch from python 2.x to 3.x and associated python package requirements.
see Python Scripting for ArcGIS Pro, third edition | Esri Press
and study the examples in
ArcGIS Pro Python reference—ArcGIS Pro | Documentation
and the code examples for tools in ArcToolbox
ArcGIS Pro geoprocessing tool reference—ArcGIS Pro | Documentation