1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Polars

Connected

Exercise

Negating a predicate

You've found that there are a few outlier artists that are skewing your analysis, so you've decided the best course of action is to filter them out. Negate a predicate to remove the artists: "Post Malone", "Taylor Swift", and "BTS".

The DataFrame spotify_df has been created for you.

Instructions

100 XP
  • Filter spotify_df to show songs by artists NOT in the provided list, excluded_artists.