laptop and a wrench

Error

The FeatureLayer class's query_top_features method returns the error message "AttributeError: 'FeatureLayer' object has no attribute '_query_df'".

ArcGIS API for Python
Número de ID del error BUG-000180522
EnviadoOctober 28, 2025
Última modificaciónDecember 30, 2025
Relacionado conArcGIS API for Python
Versión encontrada2.4.1
Sistema operativoN/A
Versión de sistema operativoN/A
Versión corregida2.4.3
EstadoFixed

Solución alternativa

If a DataFrame is required, set as_df=False and use the .sdf property:

top = layer.query_top_features(param1, as_df=False).sdf

Leave off the .sdf property to get back a FeatureSet:

top = layer.query_top_features(param1, as_df=False)

Pasos para reproducir

ID del error: BUG-000180522

Software:

  • ArcGIS API for Python

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga