Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

entrega da semana 11 - On33 #12

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

alineyoda
Copy link

No description provided.

faixas_filtradas = df[(df['Spotify Popularity'] > 80) & (df['Total Streams'] > 1_000_000)]

# Salvar base em um arquivo JSON
faixas_filtradas.to_json('faixas_filtradas.json', orient='records', lines=True)
Copy link
Collaborator

Choose a reason for hiding this comment

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

o que orient="records" faz, e lines=True


# Para verificar se o arquivo foi salvo:
# Carregar novamente para garantir que os dados foram escritos corretamente
df_verificacao = pd.read_json('faixas_filtradas.json', orient='records', lines=True)
Copy link
Collaborator

Choose a reason for hiding this comment

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

e quando se lê um arquivo json, o que ele faz os parâmetros que enviou?

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