Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Halaman ini menjelaskan cara menambahkan nilai ke sel null dan kosong saat Anda menyiapkan
data di ruang kerja Wrangler di Cloud Data Fusion Studio. Jika memiliki
kolom yang berisi sel kosong atau null, Anda dapat menentukan nilai untuk ditambahkan ke
sel tersebut.
Untuk menentukan nilai yang akan ditambahkan ke sel null atau kosong dalam kolom, ikuti langkah-langkah berikut:
Di tab Data, buka nama kolom, lalu klik panah peluas arrow_drop_down.
Pilih Isi sel kosong atau null.
Masukkan nilai yang akan ditambahkan ke setiap sel kosong atau null di kolom.
Klik Apply.
Wrangler mengisi setiap sel null atau kosong dengan nilai baru dan menambahkan
perintah fill-null-or-empty ke resep. Saat Anda menjalankan pipeline data, transformasi akan diterapkan ke semua nilai dalam kolom.
Misalnya, di kolom yang disebut Age, Anda mengganti nilai kosong dan null
dengan string N/A menggunakan langkah-langkah sebelumnya. Wrangler akan memperbarui set data
contoh dan menambahkan perintah berikut ke resep:
fill-null-or-empty :Age 'N/A'.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-04 UTC."],[[["\u003cp\u003eThis guide explains how to fill null or empty cells in a column within the Cloud Data Fusion Wrangler workspace.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify a value to replace null or empty cells in a selected column by using the "Fill null or empty cells" option.\u003c/p\u003e\n"],["\u003cp\u003eApplying this action updates the sample dataset and adds a \u003ccode\u003efill-null-or-empty\u003c/code\u003e directive to the Wrangler recipe.\u003c/p\u003e\n"],["\u003cp\u003eThe specified value will be applied to all null or empty cells in the selected column when the data pipeline is executed.\u003c/p\u003e\n"]]],[],null,["# Fill null or empty cells\n\nThis page explains how to add values to null and empty cells when you prepare\ndata in the Wrangler workspace of the Cloud Data Fusion Studio. If you have a\ncolumn that contains null or empty cells, you can specify a value to add to\nthose cells.\n\nTo specify a value to add to null or empty cells in a column, follow these\nsteps:\n\n1. [Go to 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 **Fill null or empty cells**.\n4. Enter the value to add to each null or empty cell in the column.\n5. Click **Apply**.\n\nWrangler fills each null or empty cell with the new value and adds the\n`fill-null-or-empty` directive to the recipe. When you run the data pipeline,\nthe transformation is applied to all values in the column.\n\nFor example, in a column called `Age`, you replace the empty and null values\nwith the string `N/A`using the preceding steps. Wrangler updates the sample\ndataset and adds the following directive to the recipe:\n`fill-null-or-empty :Age 'N/A'`.\n\nWhat's next\n-----------\n\n- Learn more about [Wrangler directives](/data-fusion/docs/concepts/wrangler-overview#apply_directives)."]]