Trasformar Datraframe in Dicionario

Asked

Viewed 136 times

0

I ran a df from that dictionary:

data = {
    'Nomes': ['produto1','produto2']
    'Links': ['link1.html', 'link2.html']
    'Valores': ['R$00,00','R$00,00']
    'Tipos': ['brinquedo','aparelho']
}

My doubt is how to turn a df into a dictionary

Dataframe:

      Nomes       Links  Valores  Tipo
0  produto1  link1.html  R$00,00  brinquedo
1  produto2  link2.html  R$00,00  aparelho
  • But you no longer have the dictionary on data? It is not enough to use it?

1 answer

2


Browser other questions tagged

You are not signed in. Login or sign up in order to post.