<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Spatially enabled dataframe .from_layer() method throwing __deepcopy__ error in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-from-layer-method/m-p/1398956#M9794</link>
    <description>&lt;P&gt;Solved by downgrading Pandas to 2.0.2&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2024 12:37:09 GMT</pubDate>
    <dc:creator>JohnHuillery1</dc:creator>
    <dc:date>2024-03-21T12:37:09Z</dc:date>
    <item>
      <title>Spatially enabled dataframe .from_layer() method throwing __deepcopy__ error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-from-layer-method/m-p/1398527#M9791</link>
      <description>&lt;P&gt;When I try to read data from a hosted feature service into a spatially enabled dataframe I get the following error:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Traceback (most recent call last):
File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
File "C:\Users\jhuillery\Desktop\JH_PY\work_alone\venv\lib\site-packages\arcgis\features\geo\_accessor.py", line 3112, in from_layer
raise Exception("Could not load the dataset: %s" % str(e))
Exception: Could not load the dataset: '__deepcopy__'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Python: 3.10.11&lt;/P&gt;&lt;P&gt;Arcgis API: 2.2.0.3&lt;/P&gt;&lt;P&gt;pandas: 2.2.1&lt;/P&gt;&lt;P&gt;I don't have ArcGIS Pro installed on this machine.&lt;/P&gt;&lt;P&gt;Sample code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
from arcgis.features import FeatureLayerCollection
 
gis = GIS(username='&amp;lt;username&amp;gt;', password='&amp;lt;pw&amp;gt;')
data = FeatureLayerCollection(&amp;lt;valid_url&amp;gt;, gis)
df = pd.DataFrame.spatial.from_layer(data.layers[0])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 Mar 2024 16:19:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-from-layer-method/m-p/1398527#M9791</guid>
      <dc:creator>JohnHuillery1</dc:creator>
      <dc:date>2024-03-20T16:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Spatially enabled dataframe .from_layer() method throwing __deepcopy__ error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-from-layer-method/m-p/1398956#M9794</link>
      <description>&lt;P&gt;Solved by downgrading Pandas to 2.0.2&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 12:37:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-from-layer-method/m-p/1398956#M9794</guid>
      <dc:creator>JohnHuillery1</dc:creator>
      <dc:date>2024-03-21T12:37:09Z</dc:date>
    </item>
  </channel>
</rss>

