How to filter lines if column is without variable name - Python

Asked

Viewed 29 times

1

I have some excel data that I imported into a Python dataframe (Base_Eventos). I need to summarize a variable (idPartida), then use:

Base_Eventos.groupby (by = 'idPartida '). count()

Only the result comes out with the counter column without a variable name. And I’ll need to use that count output to make a filter. base ex:

inserir a descrição da imagem aqui

The second column is empty (variable name). Is it possible to add a name? Or there’s another way to filter without adding a name. 'Cause I want to select the idPartida with more than 1000 events.

  • 1

    You can put Base_eventos.head() in your post?

No answers

Browser other questions tagged

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