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

Connected

Exercise

Combining multiple filter conditions

You are interested in how the number of streams grows for the most popular songs and artists. You will do this by finding songs that were extremely popular (having more than 10 million streams in a day) or released by a specific artist.

The DataFrame spotify_df has been created for you.

Instructions 1/2

undefined XP
  • 1
    • Filter spotify_df to show songs that have more than 10,000,000 streams AND are by the artist "Ed Sheeran".
  • 2
    • Filter the DataFrame to show songs that have more than 10,000,000 streams OR are by the artist "Ed Sheeran".