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.

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter8: Working With Advanced Functions
Section: Chapter Questions
Problem 2.7CP
icon
Related questions
Question
100%
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.
Transcribed Image Text: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.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning