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 pdimport arcgisfrom arcgis.features import GeoAccessor, GeoSeriesAccessor
ImportError: cannot import name 'GeoAccessor' I googled around and found no discussion of this. Can someone help? Thanks.
Andy... more on cloning now that 2.3 is soon to be released
/blogs/dan_patterson/2018/12/28/clone
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.
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<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN></SPAN>
It just shows you what 'would' occur during the process so you can check for yourself. prior to committing
Thanks for this pointer. And for your other post about how to upgrade to 1.5. Totally missing from Esri documentation.
You are running 1.5??
<SPAN class="keyword token">import</SPAN> pandas <SPAN class="keyword token">as</SPAN> pd <SPAN class="keyword token">import</SPAN> arcgis <SPAN class="keyword token">from</SPAN> arcgis<SPAN class="punctuation token">.</SPAN>features <SPAN class="keyword token">import</SPAN> GeoAccessor<SPAN class="punctuation token">,</SPAN> GeoSeriesAccessor dir<SPAN class="punctuation token">(</SPAN>GeoAccessor<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">[</SPAN><SPAN class="string token">'__class__'</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'__delattr__'</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'__dict__'</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">'__dir__'</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN>snip<SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.