Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!