Hey there, data enthusiats and e-commerce lovers! Have you ever how platform like Meesho converts thosands of raw data into those spot-on product recommendattions? Let me explain the data transformation journey that makes commendation magic happen.
Show
- AWS DataBrew acts as the data-transformation layer that polishes raw, unstructured eCommerce data — handling product rating aggregation, price cleaning, and smart categorization before it ever reaches the recommendation engine.
- Product ratings are aggregated using a group-by transformation to calculate an average score per product (
product_rating_mean), so a single angry or overly enthusiastic reviewer can’t distort a product’s true quality. - Price data is cleaned by stripping currency symbols (₹), converting text to real numbers, and bucketing items into Budget (under ₹300), Mid-range (₹300–₹500), and Premium (over ₹500) — giving insight into market positioning, not just price.
- AWS Glue Crawler automatically reads transformed S3 data, discovers schemas and data types, and populates the AWS Glue Data Catalog with no manual effort, while Amazon Athena queries the refactored data like a normal database to validate quality.
- In eCommerce, personalization is essential rather than a bonus — even a 1% improvement in recommendations can drive a meaningful increase in sales, which is why the entire data-prep pipeline exists.
The Data Transformation Challenge
Imagine you have an e-commerce web site with tens of millions of items and hundreds of millions of user activity. How do you turn uncooked, unstructured data into smart, contextual recommendations? That’s where magic comes in.
AWS DataBrew: Your Data Transformation Wizard
Honestly say data is rarely perfect right out to gate. It’s more like a rough diamonds that must need polishing. So, here AWS DataBrew is secret weapon for this data transformation.
Key DataBrew Transformations
1. Product Rating Aggregation
We didn’t want to just look at individual scores – we wanted to know the real quality of a product. So, we applied a group-by transformation to find the average score per product. This provides us with a more objective perspective:
- Group all scores by product ID
- Calculate average score
- Make a product_rating_mean that captures general product quality
Why is this significant? Because one upset customer or one over-the-top reviewer shouldn’t destroy or make a product.
2. Price Cleaning
Ever try to do math with prices that have currency symbols? Nightmare. We fixed this by:
- Eliminating those annoying ₹ symbols
- Converting text prices to real numbers
- So we can actually do mathematical calculations on them
3. Smart Categorization
We didn’t just want to see raw prices. We set up sensible price buckets:
- Budget: Less than ₹300
- Mid-range: ₹300-₹500
- Premium: More than ₹500
This gives us insight not only into the price, but the market positioning of products.


4. Data Integration
We created several transformed files in DataBrew. But how do we get them to get along? Meet AWS Glue and Athena.

AWS Glue Crawler: The Automatic Organizer
Imagine the Glue Crawler as an über-intelligent librarian. It:
• Reads all our transformed data in S3
• Automatically discovers schemas and types
• Fills AWS Glue Data Catalog without having to do anything

AWS Athena: Simplified Querying
Athena allows us to query our refactored data like a regular database. We utilized it to:
- Validate data quality
- Establish a consistent picture of all our revamped datasets
- Allow our recommendation engine to be built on a clean, stable data base
Why This Matters
In online shopping, personalization isn’t just a bonus — it’s essential. Even a small improvement (like 1%) in product recommendations can lead to a big increase in sales.
When we work with data — like rearranging, mixing, or rotating it — we’re not just playing with numbers. We’re doing it to:
- Understand how people behave,
- Predict what they might like next,
- And create those surprising moments where the site seems to “just know” what the customer wants.
Ready to turn your raw e-commerce data into sales-driving recommendations?
Talk to our experts to see how AWS DataBrew and Glue can transform your customer experience and boost sales with personalized recommendations.