Hello! In our last lesson, we looked at AWS Glue, which we imagined as a big, automated "robot chef" that prepares massive amounts of data behind the scenes. It's powerful, but you don't really see the process as it happens.
Now, let's explore a different kind of tool. What if you wanted to be in the kitchen yourself, visually inspecting your ingredients, trying out different preparation steps, and seeing the results immediately? This is where Amazon SageMaker Data Wrangler comes in.
Think of Data Wrangler as an interactive, visual "kitchen counter" for your data. It gives you a hands-on way to explore, clean, and prepare your data for machine learning using a point-and-click interface. In this lesson, we'll discover how Data Wrangler's visual tools make data preparation faster and more intuitive, especially when you're first figuring out your data "recipe."
What is SageMaker Data Wrangler?
At its core, SageMaker Data Wrangler is a feature within Amazon SageMaker Studio (the main AWS environment for ML) designed to simplify data preparation. Instead of writing lots of code to clean your data, you can use a visual interface to apply hundreds of pre-built transformations.
This is especially helpful for the initial, exploratory phase of a project. Just as a software developer uses an Integrated Development Environment (IDE) to write and debug code visually, a data scientist can use Data Wrangler to "debug" and prepare data.
The short video clip below gives a great high-level summary of what feature engineering is and where Data Wrangler fits in.
Introduction to Amazon SageMaker
This clip from an AWS "Introduction to Amazon SageMaker" video clearly explains the purpose of Data Wrangler.
Watch the section on feature engineering, from feature engineering. Notice how it positions Data Wrangler as a tool to speed up the process of converting raw data into useful features.
The Visual Workflow: A Step-by-Step Tour
Data Wrangler organizes your work into a logical sequence called a data flow. This is essentially a visual map of all the preparation steps you apply to your data, from the original raw file to the final clean dataset. Let's walk through the main components of this flow.
1. Import Data
First, you need to bring your data into Data Wrangler. You can import data from various sources, but most commonly, you'll connect to your S3 "data lake," where all your raw files are stored. When you import a dataset, it becomes the starting point of your data flow.
2. The Data Flow UI
Once you import data, it appears in the Data Flow user interface. This screen gives you a bird's-eye view of your entire data preparation pipeline. Every action you take—like cleaning a column or joining two datasets—adds a new step to this visual flow.

This is powerful because it allows you to see your entire "recipe" at a glance and easily go back to any step to make changes.
AWS SageMaker AI: Data Labeling & Preparation - Joud W. Awad
This article by Joud W. Awad provides a clear breakdown of the data flow concept.
Read the section titled Data Flow to understand the core idea. Then, review the subsection The Data Flow UI to see how transformations are visually stacked to build the pipeline.
3. Analyze and Visualize Your Data
Before you start changing your data, you need to understand it. What does it look like? Are there errors? Data Wrangler has built-in analysis tools that let you quickly generate reports and visualizations without writing any code.
For example, you can:
- Create a Table Summary to see statistics for each column, like the mean, median, and number of missing values.
- Generate a Histogram to visualize the distribution of values in a column.
This video demonstrates how simple it is to generate these analyses.
Getting Started with SageMaker Data Wrangler to Analyze and Transform Data | AWS ML for Beginners
The "Getting Started with SageMaker Data Wrangler" video by Tiny Technical Tutorials provides an excellent hands-on demonstration.
Watch the segment from add things to the flow, where the presenter adds an analysis step. See how quickly they generate a table summary to find missing data and then create a histogram to visualize survival rates.
4. Transform Your Data
This is where the real "wrangling" happens. Data Wrangler provides a huge library of over 300 built-in transformations that you can apply with just a few clicks. This allows you to perform all the cleaning and preparation tasks we've discussed in previous modules.
Common transformations include:
- Handle missing values: Fill empty cells with a specific value (like the mean) or drop rows with missing data.
- Manage columns: Easily drop columns you don't need.
- Encode categorical: Convert text categories into numbers using methods like One-Hot Encoding, which we learned about in Module 3.
- Process text: Clean up text data by removing special characters or converting to lowercase.
The following video clip shows how to apply some of these basic transformations visually.
Getting Started with SageMaker Data Wrangler to Analyze and Transform Data | AWS ML for Beginners
Let's return to the "Getting Started" video to see transformations in action.
Watch the section from let's add to our flow. The presenter first uses a built-in transform to drop columns they don't need, and then uses another to handle missing data by dropping rows with empty age values. This shows how complex cleaning steps can be done with simple clicks.
5. Export Your Workflow
After you have built your perfect data preparation "recipe," you need to use it. Data Wrangler gives you several options to export your work:
- Export Data: You can simply run the flow and save the final, cleaned data to an S3 bucket.
- Export Pipeline: More powerfully, you can export the entire data flow as a reusable component. This generates a script that can be run automatically as part of a larger ML pipeline (an Amazon SageMaker Pipeline).
This means you can do the development work visually in Data Wrangler, and once you are satisfied, you can automate the process for production.
Data Wrangler vs. AWS Glue: When to Use Which?
You've now learned about two data preparation tools, and it's important to know when to use each one.
-
Use SageMaker Data Wrangler for... Exploration and Development.
- It's like your IDE for data.
- It's best when you're first exploring a dataset, trying to understand it, and figuring out what cleaning steps are needed.
- It's highly visual and interactive, but it typically works on a sample of your data to keep things fast.
-
Use AWS Glue for... Production and Automation.
- It's like your data factory.
- It's best when you already have a defined "recipe" (ETL script) and you need to apply it to a massive dataset.
- It is a serverless, large-scale engine designed for automated batch processing, not interactive exploration.
Analogy: You use Data Wrangler's visual kitchen to experiment and write down a new recipe. Once you've perfected it, you give that recipe to the AWS Glue robot chef to cook that meal for a thousand people automatically.
Conclusion
In this final lesson of the module, you've seen how Amazon SageMaker Data Wrangler provides a powerful visual interface to make data preparation more intuitive and accessible.
Here are the key takeaways:
- Data Wrangler is an interactive, visual tool within SageMaker for exploring and preparing data.
- Your work is organized in a Data Flow, which is a visual pipeline of your transformation steps.
- It allows you to Analyze data with built-in visualizations and Transform it using a library of over 300 pre-built functions with minimal code.
- You can Export your flow to automate the data preparation process in a production pipeline.
- Data Wrangler is for interactive development, while AWS Glue is for large-scale, automated execution.
Congratulations on completing the "Data Preparation on AWS" module! You've journeyed from understanding fundamental data concepts to exploring powerful, industrial-strength tools like IAM, S3, Glue, and Data Wrangler.
In the next part of this course, we will shift our focus from preparing the data to using it. We'll begin to explore the core of machine learning: how to train models that can learn patterns from the clean data you've worked so hard to prepare.