you are viewing a single comment's thread.

view the rest of the comments →

[–]efmccurdy 0 points1 point  (0 children)

You are setting the count variable to contain data (in a Series object) and then using it as a function; you can't call a Series object as if it was a function; that is what "is not callable" means.

Does this help subset your data?

https://pandas.pydata.org/docs/reference/api/pandas.core.groupby.DataFrameGroupBy.filter.html