TransWikia.com

Shapfile attribute data processing using ArcPy in IDLE

Geographic Information Systems Asked by Muhammad Zohaib on January 3, 2021

I am working on shapefile data using ArcPy in IDLE environment. How can I access/read two attributes of a shapefile and create a scatter plot using ArcPy?

This is what I am getting:

This is what I am getting

This is what I need:

This is what I  need

import arcpy
from arcpy import env
from arcpy.sa import *
import matplotlib.pyplot as plt
import numpy as np
env.workspace = "C:/Users/zohaib pc/Documents/MS_second_semester/PYTHON_GIS/PYTHON_GIS/python final"
readd= "pm25.shp"
nparr = arcpy.da.FeatureClassToNumPyArray(readd,['AQI_yearly', 'PM25_yearl'])
plt.plot([nparr['PM25_yearl'],nparr['AQI_yearly']])
plt.show()

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP