The file personnel_data.csv is stored in the local directory, and contains tabular data pertaining to the employees at a London-based business. The table contains column headers First, which gives each employee's first name, Second, which gives each employee's last name, and Time in Employment (Months), which gives the number of months since the employees contract began. Create a Pandas DataFrame pension that contains two columns. The first column should be labelled 'Full', and give both the first and last names of each employee (separated by a space). The second column should be labelled 'Pension Value', and give the total amount of money contributed towards the employee's pension. For each month the employee is employed, £248 is contributed towards their pension. You should not include the currency (£) in the data. The rows in the DataFrame should be indexed with integers from zero.
The file personnel_data.csv is stored in the local directory, and contains tabular data pertaining to the employees at a London-based business. The table contains column headers First, which gives each employee's first name, Second, which gives each employee's last name, and Time in Employment (Months), which gives the number of months since the employees contract began. Create a Pandas DataFrame pension that contains two columns. The first column should be labelled 'Full', and give both the first and last names of each employee (separated by a space). The second column should be labelled 'Pension Value', and give the total amount of money contributed towards the employee's pension. For each month the employee is employed, £248 is contributed towards their pension. You should not include the currency (£) in the data. The rows in the DataFrame should be indexed with integers from zero.
Chapter8: Working With Advanced Functions
Section: Chapter Questions
Problem 2.7CP
Related questions
Question
100%
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning