laptop and a wrench

Error

Spatially enabled data frame when converted to feature set using ArcGIS API for Python, nulls values are changing to 0s (zeros) in the integer field.

ArcGIS Online
Número de ID del error BUG-000178347
EnviadoJuly 30, 2025
Última modificaciónAugust 25, 2025
Relacionado conArcGIS Online
Versión encontradaN/A
Sistema operativoWindows OS
Versión de sistema operativo11.0 64 bit
EstadoWill Not Be Addressed

Información adicional

This is caused by the initial creation of the DataFrame. If it is changed from pd.Series to the `list` object. It will work: df = pd.DataFrame({ "str_field": [None, None, "test_string"], "int_field": [None, None, 0], 'x': [-122.3321, -120.7401, -117.4260], # Longitudes 'y': [47.6062, 46.8523, 48.7519] # Latitudes }) By doing this, Pandas can handle the null integer values.

Solución alternativa

Utilize a string field instead of an integer field to prevent the issue.

Pasos para reproducir

ID del error: BUG-000178347

Software:

  • ArcGIS Online

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