What is the difference between geoaccessor and geoseriesaccessor?

186
2
12-06-2021 09:26 AM
TylerT
by
Occasional Contributor

What is the difference between geoaccessor and geoseriesaccessor, and how can I access geoseriesaccessor?  

I have the following snippet of code:

 

df.spatial.as_arcpy()

 

returns the error:

AttributeError: 'GeoAccessor' object has no attribute 'as_arcpy'

 as_arcpy is a method of GeoSeriesAccessor, not GeoAccessor, so how do I specify GeoSeriesAccessor?

Thank you,

Tyler

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor
0 Kudos
TylerT
by
Occasional Contributor

Well, I cleared up a major blind spot that's helps me.  GeoAccessor uses spatial namespace while GeoSeriesAccessor uses geom namespace.  Unless I missed it in the docs, this is not completely obvious.  That's why I was getting the attribute error above.  

Tyler