-1
I have a dataset that contains some columns that inform me: user, situacao_requisicao, city. I would like to generate a csv that informs me the amount of requisicoes of each city, how many were accepted, and how many were rejected. Ex from the dataset:
+----------+-------------------+----------------+
| nome |situacao_requisicao| cidade |
|----------|-------------------|----------------|
| felipe | aceita | belem |
| ana | aceita | belem |
| fabio | recusada | recife |
| fabiane | aceita | belem |
| leticia | aceita | rio de janeiro |
| luan | recusada | recife |
+----------+-------------------+----------------+
currently I can only get the amount of accepted or denied, or the total. all this separately doing something like this:
df = pd.read_csv("../../data/bases/data.csv")
df["nome"].count()
If anyone can tell me how to gather all the above information, I would appreciate it.