I'm following the intro steps here:
https://developers.arcgis.com/python/guide/introduction-to-the-spatially-enabled-dataframe/
I hit a wall right at the start:
import pandas as pd
import arcgis
from arcgis.features import GeoAccessor, GeoSeriesAccessor
ImportError: cannot import name 'GeoAccessor'
I googled around and found no discussion of this. Can someone help?
Thanks.
You are running 1.5??
import pandas as pd
import arcgis
from arcgis.features import GeoAccessor, GeoSeriesAccessor
dir(GeoAccessor)
['__class__',
'__delattr__',
'__dict__',
'__dir__',
....snip....
Thanks for this pointer. And for your other post about how to upgrade to 1.5. Totally missing from Esri documentation.
conda install … esri want people to clone … and not to use -no-pin because they have only tested the capabilities at that time with certain modules. I can report the upgrading many packages that are in the 'pinned' file has caused not problems in my install. My installs have all be done in the original installation and not a clone, as have the upgrades.
If you are feeling queasy about what an install may do, you can always use
conda install blahblah --dry-run # or
conda update blahblah --dry-run
It just shows you what 'would' occur during the process so you can check for yourself. prior to committing
Yes, thanks for the Q and As - I was struggling with the same issue and wasn't clear on how to get up to 1.5, but this thread got me on the right path. For now I've gone down the clone route, and just updating that using package manager from within Pro on the basis that I don't yet fall into the "sortof know what you are doing" category, as Dan puts it in his blog post!
Cheers,
A.
Andy... more on cloning now that 2.3 is soon to be released
Thanks Dan