Skip to content

exercicio S9#4

Open
AnaliaAlves wants to merge 1 commit into
reprograma:mainfrom
AnaliaAlves:main
Open

exercicio S9#4
AnaliaAlves wants to merge 1 commit into
reprograma:mainfrom
AnaliaAlves:main

Conversation

@AnaliaAlves
Copy link
Copy Markdown

EASY

Comment thread Anália/exercicoS9.py Outdated
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
df['Total Streams'] = df['Spotify Streams'] + df['YouTube Views'] + df['TikTok Views'] + df['Pandora Streams'] + df['Soundcloud Streams']
df['Total Streams'] = df[['Spotify Streams', 'YouTube Views', 'TikTok Views', 'Pandora Streams', 'Soundcloud Streams']].sum(axis=1)

Comment thread Anália/exercicoS9.py Outdated
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
filtro = (df['Spotify Popularity'] > 80) & (df['Total Streams'] > 1_000_000)
most_popular_filter = (df['Spotify Popularity'] > 80) & (df['Total Streams'] > 1_000_000)

Copy link
Copy Markdown
Collaborator

@manuellysuzik manuellysuzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EASY 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants