I understand that SpatialDataFrame has been replaced by a "spatially enabled dataframe." It looks like the former was a function in arcgis.features while the latter goes through pandas. I cannot get either to work! On advice from another thread, I rolled back my pandas to 0.23.4, but that has not helped (arcgis api version 1.6). Using tab-complete, pandas.DataFrame.spatial does not appear to have any methods. Apparently arcgis.features.GeoAccessor has a .from_layer method that yields a pandas dataframe, but I wasn't able to define a feature layer from a url.
Old Way (SpatialDataFrame):
New Way ("spatially enabled dataframe" via pandas):
Third way (GeoAccessor):
from arcgis.features import FeatureLayer, GeoAccessor
FL = FeatureLayer('http://[my institution].maps.arcgis.com/home/item.html?id=fbcae48fb3e64ad886ee84ddb225f39a')
df = GeoAccessor.from_layer(FL)
That FL does not have properties and cannot be mapped, so it's no surprise from_layer fails as well.
Any thoughts?