[Python] How to create a polars dataframe on the basis of previous row

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

  1. Stack

    Stack Membro Participativo

    I'm trying to create a polar data frame in python. Dataframe format is:

    timestamp(secs) Counter
    164323232 2

    I'm given only the first row. Now I need to create a dummy dataframe (say 100 rows) on the basis of this first row. Each row should be apart by one day and the counter will be zero.

    Continue reading...

Compartilhe esta Página