I have data in the from a tweet corpus which has number of followers per user.
My data frame has the “followers” column of all the users. I am trying to plot an area graph for number of followers vs its frequency, such that I have number of followers on x axis and the number of users with that many followers on y-axis.
My code right now is
data = pd.read_csv('data_final.csv') df = pd.DataFrame(data, columns=['user_followers_count']) st.area_chart(df)
The result right now is
whereas the required result would be something where
user_followers_countis on x-axis and the y-axis shows how many users have that follower count. Any hint on how to proceed would be great