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

Connected

Exercise

Table filtering

Now that you have the basic product catalog loaded, the startup wants to focus on premium products for their advanced training courses. You need to identify which products are considered "premium" (priced above $800) and create a filtered dataset for the marketing team.

The Table, DoubleColumn, and Selection classes have been imported for you.

Instructions

100 XP
  • Create a Selection for "Price" greater than 800.
  • Filter the products table using the Selection.
  • Print the row count of premium products.
  • Print the mean price of premium products.