Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Data Wrangler is an interactive interface in Fabric notebooks that helps you prepare data quickly and visually, with real-time previews before applying changes. It now includes several built-in AI capabilities for even faster data transformation, including AI functions, rule-based AI suggestions, and code generation with Copilot. For information on getting started with Data Wrangler, see Accelerate data prep with Data Wrangler.
Prerequisites
AI functions and Copilot in Data Wrangler
- To use AI functions and Copilot in Data Wrangler with the built-in AI endpoint in Fabric, your administrator needs to enable the tenant switch for Copilot and other features that are powered by Azure OpenAI.
- Depending on your location, you might need to enable a tenant setting for cross-geo processing. Learn more about available regions for Azure OpenAI Service.
- You also need an F2 or later edition or a P edition. If you use a trial edition, you can bring your own Azure OpenAI resource.
AI functions in Data Wrangler
To use AI functions in Data Wrangler, you will also need to install OpenAI in your notebook. The following code cell has the necessary installation commands:
# The pandas AI functions package requires OpenAI version 1.99.5 or later.
%pip install -q --force-reinstall openai==1.99.5 2>/dev/null
Apply AI Functions in Data Wrangler (preview)
Fabric AI functions allow you to perform tasks such as text summarization, classification, translation, sentiment analysis, grammar correction, your own prompt, and more, without writing complex code. To apply AI functions in Data Wrangler, open Data Wrangler, navigate to "Operations" on the left pane, expand 'AI enrichments', and select the function you would like to use.
After filling in the necessary details, select "Run Preview" to see a preview of the transformation on your data frame.
To apply the changes to your data frame, select "Apply."
Apply automated suggestions
Data Wrangler provides smart operation suggestions relevant to your data frame, leveraging rule-based AI from Microsoft PROSE. To view and apply these one-click suggestions, navigate to "Operations" on the left pane, expand “Suggestions,” and select the operation you would like to apply. A preview will be automatically generated. To keep the changes, select "Apply."
Generate code with Copilot
Copilot in Data Wrangler allows you to describe in plain language what you want to achieve and generates the corresponding transformation, along with an instant preview so you can validate the results before applying them. To use Copilot in Data Wrangler, select the Copilot text box above the code cell and describe your desired operation, such as “remove rows with missing values,” or “standardize dates to YYYY-MM-DD format.” Then, select "Run Preview." To apply the changes to your data frame, select "Apply."
Related content
- To get started with Data Wrangler, visit this article
- For a live-action demo of Data Wrangler in Fabric, watch this video from our friends at Guy in a Cube
- To try out Data Wrangler in Visual Studio Code, go to Data Wrangler in VS Code
- Did we miss a feature you need? Let us know! Suggest it in the Fabric Ideas forum