Finding Proportions with PandasYou have a Twitter dataset (d…

Questions

Finding Prоpоrtiоns with PаndаsYou hаve a Twitter dataset (df) with columns: user, tweet, when (morning/afternoon/evening), likes, retweet, followers, location.Write one line of Pandas code to find the proportion (not count) of tweets posted in each time period (morning, afternoon, evening) for each user. The output should show proportions (values between 0 and 1) rather than raw counts, with users as rows and time periods as columns.Hint: Use groupby(), value_counts() with a parameter, and unstack().