1. Learn
  2. /
  3. Courses
  4. /
  5. Cleaning Data in Java

Connected

Exercise

Aggregating columns

You need to clean and analyze your stock data to understand high-value inventory patterns. Raw inventory data often includes irrelevant items and needs organization by category. Clean the data by filtering for expensive items (over $5), then calculate accurate totals, and organize by category. This cleaned and summarized view helps identify which departments have the most investment in premium products.

tablesaw packages have been imported for you.

Instructions

100 XP
  • Find expensive items (Unit_Price > $5.00).
  • Calculate the total Stock_Quantity for each category.
  • Group results by Category.