[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[],[],null,["# Filter data\n\nThis page explains how to filter when you prepare data in the Wrangler\nworkspace of the Cloud Data Fusion Studio. In Wrangler, you can filter rows of\ndata in columns of any data type, except the boolean type. You keep or remove\nrows based on a condition that you configure.\n\nTo keep or remove rows based on a condition, follow these steps:\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 **Filter** and select an option---for example, **Keep rows** and **If\n value contains**.\n4. Specify the condition.\n5. Click **Apply**.\n\nThe values change based on the filter. Wrangler adds the `filter-rows-on`\ndirective to the recipe. When you run the data pipeline, the transformation is\napplied to values in the column.\n\nKeep rows\n---------\n\nIf you choose to keep rows based on a condition, rows that don't meet the\ncondition are removed. Only the rows that meet the condition remain in the\ndataset. For example, if you select **value is** and enter the condition\n`Customer`, Wrangler keeps rows containing the string `Customer` and removes\nrows with other values.\n\nRemove rows\n-----------\n\nIf you choose to remove rows based on a condition, rows that meet the condition\nare removed from the dataset. For example, if you remove rows and select **value\nis empty**, Wrangler removes rows from the column that have empty or null\nvalues.\n\nSupported filter conditions\n---------------------------\n\nYou can filter rows based on the following conditions:\n\nWhat's next\n-----------\n\n- Learn more about [Wrangler directives](/data-fusion/docs/concepts/wrangler-overview#apply_directives)."]]