AnsweredAssumed Answered

Spatially Enabled Dataframe issues

Question asked by matthewskewes on Dec 5, 2018
Latest reply on Dec 6, 2018 by jyaist-esristaff



I previously used the SpatialDataFrame object to access online feature services. With the update of the API to 1.5.1, I have tried to utlise the new Spatially Enabled Dataframe object in the same way, as that appears to be preferred way going forward but I'm running into issues trying to access the same dataset I had no issues accessing with a SpatialDataFrame.


This is the error I receive when I use the simple code below 

Exception: Could not load the dataset: cannot perform __truediv__ with this index type: DatetimeIndex

item = gis.content.get("ItemID")
flayer = item.layers[1]
sdf = pd.DataFrame.spatial.from_layer(flayer)

I'm using Python  3.6.7 with the latest version of ArcGISPro

Has anyone had similar issues?