1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Parsing bytes data in Python

Discussão em 'Python' iniciado por Stack, Setembro 15, 2024.

  1. Stack

    Stack Membro Participativo

    I get this **bytes ** data from API:

    b'{"response":{"result":
    [{"date":"2024-09-04T00:00:00","id":1260546,"price":121.51},
    {"date":"2024-09-05T00:00:00","id":1260546,"price":121.54},
    {"date":"2024-09-08T00:00:00","id":1260546,"price":121.55}
    ],"total":3}}'


    I need to extract the inner result data (date, id, price), preferably to pandas DataFrame.

    Any elegant way to do it?

    Continue reading...

Compartilhe esta Página