프레디케이트 부정하기
몇몇 특이치 아티스트 때문에 분석이 왜곡되는 것을 발견했어요. 가장 좋은 방법은 이들을 걸러내는 거예요. 프레디케이트를 부정해 다음 아티스트들을 제거하세요: "Post Malone", "Taylor Swift", 그리고 "BTS".
DataFrame spotify_df는 미리 생성되어 있어요.
이 연습은 강의의 일부입니다
Polars 입문
연습 안내
- 제공된 리스트
excluded_artists에 포함되지 않은 아티스트의 노래만 보이도록spotify_df를 필터링하세요.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
excluded_artists = ["Post Malone", "Taylor Swift", "BTS"]
# Filter the DataFrame for songs to exclude these artists
artist_df = spotify_df.filter(____)
print(artist_df)