Nella scheda Dati, vai a un nome di colonna e fai clic sulla freccia di espansione arrow_drop_down.
Seleziona Formato e seleziona un'opzione, ad esempio Maiuscole. Le opzioni sono spiegate nelle sezioni seguenti.
Wrangler esegue la trasformazione sui valori della colonna in modalità di anteprima e aggiunge la direttiva corrispondente alla ricetta. Quando esegui la pipeline di dati, la trasformazione viene applicata a tutti i valori della colonna.
Modificare le maiuscole/minuscole delle stringhe
Per modificare la maiuscola, segui i passaggi descritti nella sezione precedente e scegli una delle seguenti opzioni.
Opzione
Descrizione
MAIUSCOLO
Modifica la maiuscola/minuscola delle stringhe in maiuscolo, ad esempio
1800 Amphibious Blvd. diventa
1800 AMPHIBIOUS BLVD.
minuscolo
Modifica la maiuscola delle stringhe in minuscolo, ad esempio
1800 Amphibious Blvd. diventa
1800 amphibious blvd.
Maiuscole
Modifica la modalità di scrittura delle lettere in modo che la prima lettera di ogni parola sia in maiuscolo. Ad esempio, 1800 amphibious blvd. diventa 1800 Amphibious Blvd..
Concatena le stringhe
Per aggiungere caratteri all'inizio o alla fine di tutti i valori di stringa di una colonna:
Nella scheda Dati, vai a un nome di colonna e fai clic sulla freccia di espansione arrow_drop_down.
Fai clic su Formato > Concatena.
Nel campo Aggiungi, inserisci la stringa da aggiungere ai valori esistenti.
Seleziona dove aggiungere il nuovo valore nella stringa scegliendo all'inizio o alla fine.
(Facoltativo) Per creare una nuova colonna per le stringhe concatenate, seleziona la casella di controllo Copia in una nuova colonna.
Esempio
Questo esempio mostra i valori di input e output quando aggiungi la stringa NEW- all'inizio di ogni valore in una colonna:
Input
Output
bread
NEW-bread
butter
NEW-butter
Taglia gli spazi dalle stringhe
Per eliminare gli spazi iniziali, segui i passaggi per formattare una colonna di stringhe all'inizio di questa pagina e scegli una delle seguenti opzioni:
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[[["\u003cp\u003eThis page outlines how to format string data within the Wrangler workspace in Cloud Data Fusion, focusing on common string manipulations.\u003c/p\u003e\n"],["\u003cp\u003eYou can change the case of strings to \u003ccode\u003eUPPERCASE\u003c/code\u003e, \u003ccode\u003elowercase\u003c/code\u003e, or \u003ccode\u003eTitleCase\u003c/code\u003e directly from the Wrangler's formatting options.\u003c/p\u003e\n"],["\u003cp\u003eWrangler allows you to concatenate strings, appending characters to the beginning or end of each string value in a column, optionally creating a new column for the modified data.\u003c/p\u003e\n"],["\u003cp\u003eYou can trim spaces from strings in a column, including removing leading spaces, trailing spaces, or both, using the \u003ccode\u003eTrim whitespace\u003c/code\u003e, \u003ccode\u003eTrim leading whitespace\u003c/code\u003e, or \u003ccode\u003eTrim trailing whitespace\u003c/code\u003e options.\u003c/p\u003e\n"]]],[],null,["# Format strings\n\nThis page explains how to format strings when you prepare data in the Wrangler\nworkspace of the Cloud Data Fusion Studio.\n\nTo format a **String** column, follow these steps:\n\n1. [Go to the Wrangler workspace in Cloud Data Fusion](/data-fusion/docs/concepts/wrangler-overview#navigate-to-wrangler).\n2. On the **Data** tab, go to a column name and click the arrow_drop_down expander arrow.\n3. Select **Format** and select an option---for example, **TitleCase**. The options are explained in the following sections.\n\nWrangler performs the transformation on the column's values in Preview mode and\nadds the corresponding directive to the recipe. When you run the data pipeline,\nthe transformation is applied to all values in the column.\n\nChange the case of the strings\n------------------------------\n\nTo change the letter case, follow the steps in the preceding section and choose\none of the following options.\n\nConcatenate the strings\n-----------------------\n\nTo append characters to the beginning or end of all string values in a column,\nfollow these steps:\n\n1. [Go to the Wrangler workspace in Cloud Data Fusion](/data-fusion/docs/concepts/wrangler-overview#navigate-to-wrangler).\n2. On the **Data** tab, go to a column name and click the arrow_drop_down expander arrow.\n3. Click **Format \\\u003e Concatenate**.\n4. In the **Add** field, enter the string to add to the existing values.\n5. Select where to add the new value in the string by choosing **at the\n beginning** or **at the end**.\n6. Optional: to create a new column for the concatenated strings, select the **Copy to a new column** checkbox.\n\n| **Tip:** To prevent adding characters to null or blank values, filter out the null and blank values before performing this task.\n\n**Example**\n\nThis example shows the input and output values when you add the string `NEW-` to\nthe beginning of each value in a column:\n\nTrim spaces from the strings\n----------------------------\n\nTo trim spaces, follow the steps to format a string column at the\nbeginning of this page and choose one of the following options:\n\nWhat's next\n-----------\n\n- Learn more about [Wrangler directives](/data-fusion/docs/concepts/wrangler-overview#apply_directives)."]]