Hello!
I'm tryng to get the max value on a feature layer using argis python api.
I need to check the max record on a numeric field.
I was able to get it loading the feature layer to a spatial dataframe, but it is slow and will become slower once the feature layer grow (I spect to reach near a million records).
I think it is possible with the fearurelayer metho, but I don know how to do it.
My actual code:
sdf = pd.DataFrame.spatial.from_layer(feature_layer_hosted_on_arcgis)
id = sdf["id"]
max_value = id.max()