Answered step by step
Verified Expert Solution
Question
1 Approved Answer
AttributeError Traceback (most recent call last) Cell In[42], line 8 1 # Q5 2 # The data you download in dividend paid per share 3
AttributeError Traceback (most recent call last) Cell In[42], line 8 1 # Q5 2 # The data you download in dividend paid per share 3 # In the 2018-2021 period, find Total dividend paid per share by each firm. 4 # Which firm pay the most dividend per share 5 # Copy and Paste the ticker here (DON'T Type) 7 new_df5 = df3[(df3['Year'] >= 2018) & (df3['Year'] <= 2021)] ----> 8 total_dividends = new_df5.groupby(['ticker','Year']), ['Dividends'].sum() 9 total_dividends = pd.DataFrame(total_dividends) 10 #sort AttributeError: 'list' object has no attribute 'sum
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started