Question: Use the Pandas groupby() method to create v1988 which is a 20 row dataframe grouped by 'ventile'. (v1988 should also be sorted in ventile order.)

Use the Pandas groupby() method to create v1988 which is a 20 row dataframe grouped by 'ventile'. (v1988 should also be sorted in ventile order.) Each row of v1988 represents a single ventile, and has its 'RRinc' field value set to the mean of the 'RRinc' field values in lm1988 that share that 'ventile' value. Your v1988 dataframe should be ordered by ventile (0th first, 19th last)

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!