CÓMO

Convertir palabras en mayúscula a minúscula en un campo de cadena de caracteres en ArcGIS Pro

Last Published: July 18, 2023

Resumen

When using string functions such as title or replace in the Calculate Fields tool to replace an upper case letter with a lower case in a string field, only specific letters are replaced. To convert all upper case letters in a string field to lower case, use the .lower() function instead.

In this example, all the upper case letters under the CITY field of the attribute table are converted to lower case.

Procedimiento

Complete the steps below to convert all the upper case letters in a string field to lower case using the Calculate Fields tool.

  1. Open the project in ArcGIS Pro.
  2. In the Contents pane, right-click the layer with the attribute table, and click Attribute Table.
  3. In the attribute table, right-click the field with the upper case letters to be converted, and click Calculate Field Calculate Field. Ensure the Expression Type is Python3.
  4. Under the Expression section in the Calculate Field pane, select the field under Fields, and select the .lower() function from the Helpers list.
Note:
Set the filter to Text helper type to make the search for the .lower() function easier.

The expression reads as follows:

!<layer name>!.lower()

In this example, the expression reads:

!CITY!.lower()
Expression pane
  1. Click Run. When the tool completes, all the upper case letters of the field are converted to lower case.
Upper case letters converted to lower case
  1. Click the Save Edits button Save Edits button in the Calculate Field pane to save the changes.

Id. de artículo: 000022867

Recibir notificaciones y encontrar soluciones a problemas nuevos o comunes

Obtenga respuestas resumidas y soluciones de vídeo de nuestro nuevo chatbot de IA.

Descargar la aplicación de soporte de Esri

Información relacionada

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