I have a question on advanced pandas. Currently, my dataframe’s columns are celebrities, date (YYYY-MM-DD), and No. of followers. For each date, it will show the new no. of followers.
However, I would like to calculate the average no. of new followers from the starting date, 2020/1/1 to 2020/4/1 for each celebrity in a table format with only the celebrity and no. Of followers in the column.
How do I write a python code on this?
Thank you very much!