0
I would like to know a practical way of separating a Dataframe into several by the column value state
.
For example:
AC = covid[covid['state'] == 'AC'],
AL = covid[covid['state'] == 'AL'],
AM = covid[covid['state'] == 'AM'],
AP = covid[covid['state'] == 'AP'],
I did it this way, but it becomes very repetitive. I tried in other ways, but I ended up not getting.
Does it have to be done this way? What is your intention to create several variables? Hug!
– lmonferrari
It may be otherwise but what I wanted was to calculate the percentage variation of cases and deaths of covid for each state, for that I needed to separate the states calculate the variation and then put it all together again.
– Vinicius Costa
can share the database?
– Lucas
https://brasil.io/dataset/covid19/files/
– Vinicius Costa