Module 4 : Exploring & Manipulating Data

 For this week's module, we were tasked with exploring and manipulating data that allowed us to use different methods into handling data in ArcGIS and diving into the built-in Python functions, cursors, and ArcPy data modules. We also learned about lists, and tuples, how utilizing the for loop can iterate over the elements of lists, and how dictionaries can be used to highlight different keys and values of data. 

The goal of this lab was to create a script via Python that would run successfully with no errors, creating a new geodatabase that copied data from our Data folder and populating a dictionary with the names of cities and their populations determined by their county seat in New Mexico. The basic template gave us an outline of what to do and how to create this script but the exercise and readings were what gave us the details on how to accomplish the goals of this script. 

This lab really put me to the test on how to outline everything, how to ensure the coding was correct, and what functions needed to be used to complete each necessary step. 

Below is the outcome of my script:

Image A and B is the outcome of the search cursor and the print function printing out the city names, feature type and population. 

Image A

Image B

The last image (image c) is showing the print out of the dictionary and the keys and values of it that were assigned for the county seats of New Mexico. 
Image C





Comments

Popular Posts