M
M
mefisto6612020-07-27 16:55:56
Python
mefisto661, 2020-07-27 16:55:56

How to modify a pandas table?

table
5f1edc88d16ab846842860.png

get
5f1edc9a851b0903501662.png

There is a lot of data in the table, so doing it in cycles is not an option. Interested in a solution that fully realizes the power of pandas.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
organica, 2020-07-29
@organica

df.unstack('event')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question