[Python] Write list of dict to CSV file in Python [closed]

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

  1. Stack

    Stack Membro Participativo

    deatils=[{"names":["ramu","Ravi","Naik"],"ages":[39,40,45],"department":"admin","location":"Bangalore"},

    {"names":["Kiran","Kumar","Joseph"],"ages":[35,26,52],"department":"IT","location":"Hyderabad"},

    {"names":["Rajesh","Nakul"],"ages":[34,40],"department":"Payroll","location":"Chennai"},

    {"names":["Mukesh","Kundan","Kishore"],"ages":[27,33,37],"department":"IT","location":"Bangalore"}]


    I'm looking for the data to be saved in CSV file like below:

    [​IMG]

    Continue reading...

Compartilhe esta Página