Dear Team,
I am using Geo Maps for analysis purpose, tried install the geopandas to read the .shp files.
using below mentioned logic to read the .shp fle
shp_path = r"C:\Users\HP\Desktop\Covid\updated\Usa_States.shp"
map_data = shp.Reader(shp_path, "rb")
map_data.rename(columns = {'st_nm':'States/UT'}, inplace = True)
map_data.head()
I am getting error below
AttributeError: 'Reader' object has no attribute 'rename'
Main Problem is cannot able to install geopandas
map_data = gpd.read_file('Indian_States.shp')
map_data.rename(columns = {'st_nm':'States/UT'}, inplace = True)
map_data.head()
Request you to help on this
Thanks and Regards,
Seetharam
I am using Geo Maps for analysis purpose, tried install the geopandas to read the .shp files.
using below mentioned logic to read the .shp fle
shp_path = r"C:\Users\HP\Desktop\Covid\updated\Usa_States.shp"
map_data = shp.Reader(shp_path, "rb")
map_data.rename(columns = {'st_nm':'States/UT'}, inplace = True)
map_data.head()
I am getting error below
AttributeError: 'Reader' object has no attribute 'rename'
Main Problem is cannot able to install geopandas
map_data = gpd.read_file('Indian_States.shp')
map_data.rename(columns = {'st_nm':'States/UT'}, inplace = True)
map_data.head()
Request you to help on this
Thanks and Regards,
Seetharam