[Python] Polars import from list of list into Colums

Discussão em 'Python' iniciado por Stack, Março 2, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to import a list of lists into Polars and get the data in seperate columns.

    Example.

    numbers = [['304-144635', 0], ['123-091523', 7], ['305-144931', 12], ['623-101523', 16], ['305-145001', 22], ['623-111523', 27], ['9998-2603', 29]]


    Does not work like Pandas and this does not work.

    df = pl.DataFrame(numbers)


    new to polars and excited to start using. Thanks

    Continue reading...

Compartilhe esta Página