How to start learning arcpy in ArcGis pro ?

1128
8
02-03-2024 05:04 AM
JokerEsri
New Contributor III

Hello ,

How to learn Arcpy in ArcGis pro ? 
which books do you recommend ?which online course should i book ?

i am beginner in Python and I would like to start learning Python arcpy in ArcGis pro 

thanks in advance. 

Tags (3)
0 Kudos
8 Replies
DanPatterson
MVP Esteemed Contributor

training link ... search using arcpy would be a start

addendum

I forgot the best resource

ArcGIS Pro Python reference—ArcGIS Pro | Documentation


... sort of retired...
0 Kudos
CodyPatterson
Regular Contributor

Hey @JokerEsri 

I was in the same situation as you learning Python initially for my position, for myself, I used ESRI's Training modules to prepare myself with this link here:

https://www.esri.com/training/catalog/search/

Specifically the scripting and development section, along with Spatial Analysis to get into that realm as well.

Along with that, both of these links helped as well:
https://pro.arcgis.com/en/pro-app/3.1/arcpy/get-started/installing-python-for-arcgis-pro.htm
https://learn.arcgis.com/en/projects/get-started-with-python-in-arcgis-pro/

My best piece of advice is just try things out, think of a tool or similar that is not common or that you can find, and give it a shot to make it!


Hope that helps to some extent!

0 Kudos
JokerEsri
New Contributor III

Thanks a lot for the link .

is there any recommended book to buy ?

0 Kudos
CodyPatterson
Regular Contributor

Hey @JokerEsri 

These two books are offered by ESRI Publication and encompass a great amount of info:

https://www.esri.com/en-us/esri-press/browse/python-scripting-for-arcgis-pro

https://www.esri.com/en-us/esri-press/browse/advanced-python-scripting-for-arcgis-pro

I have the Advanced Python book and it has been incredibly helpful!

 

Cody

0 Kudos
mokamuralidhar
New Contributor
0 Kudos
BlakeTerhune
MVP Regular Contributor

The option to export a geoprocessing output or model to Python can also be helpful in learning because you can see how some of the more complex tools are set up in Python.

0 Kudos
BobBooth1
Esri Contributor

The tutorials here may be helpful:

https://learn.arcgis.com/en/paths/learn-python-in-arcgis-pro/

You can get the syntax for running a Geoprocessing tool by looking in the History and copying it as Python code -- I find this very useful.

https://pro.arcgis.com/en/pro-app/3.1/help/analysis/geoprocessing/basics/run-geoprocessing-tools.htm...

 

0 Kudos
AllenDailey1
Occasional Contributor III

Hello!  Welcome to the world of Python and arcpy!

I learned Python by taking a Python classes at a community college; it was an online course.  I took one course with a bad professor and was so discouraged, but then I took a class with a great professor and learned a lot and got confident.

I'm so thankful for that class; I constantly use skills I got there. I feel it's super important to have a foundation in plain, non-GIS Python in order to do GIS/arcpy scripting - I could not have gotten far at all without learning about basic Python stuff like string manipulation, lists, slicing and indexes, creating and accessing dictionaries, creating functions, and writing loops (if loops, for loops). So I would highly recommend learning and practicing these things.

In terms of self-paced learning and resources on general Python, I often end up looking at W3Schools Python websites... I know nothing about this organization, but I find their Python resources helpful.

https://www.w3schools.com/python/

I also often find myself using Geeks for Geeks:

https://www.geeksforgeeks.org/python-programming-language/

The website asks you sign in, but just close that pop-up; you don't have to sign in.

Good luck!

0 Kudos