my tweeter data frame looks like this:
User_id Year Month
0 1.367900e+04 2020 10
1 1.367900e+04 2020 11
2 1.367900e+04 2020 11
3 1.367900e+04 2019 11
4 2.313400e+04 2019 12
each user_id row symbolize a tweet by the user. i need to add a column called "Tweets_count" that counts the number of tweets for user in each Month.
data frame should look like this:
User_id Year Month Tweet_count
0 1.367900e+04 2020 10 5
1 1.367900e+04 2020 11 7
2 1.367900e+04 2020 9 10
3 1723647 2019 11 50
4 1723647 2019 12 20