Split by columns in CSV conversion

Asked

Viewed 95 times

-1

I need to do a CRUD for student registration, and then soon after, convert this data to a spreadsheet, and for now, the save part to. csv is like this:

alunos_json = json.dumps(alunos, indent=True)

with open('abc.csv', 'w+') as file:
    file.write(alunos_json)

The problem is: when I open the file with the data of the program, the registered students are below each other:

And I wanted it to be sort of organized that way:

inserir a descrição da imagem aqui

How can I do that?

1 answer

0

Browser other questions tagged

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