Your Perfect Assignment is Just a Click Away

Starting at $8.00 per Page

100% Original, Plagiarism Free, Customized to Your instructions!

glass
pen
clip
papers
heaphones

MSA 80 Georgia State University Python Jupyter Coding with Excel

MSA 80 Georgia State University Python Jupyter Coding with Excel

Question Description

I’m trying to study for my Python course and I need some help to understand this question.

Problem 1

Code a function load_employees that loads the employees table from the path where the file Employees.xls is in your computer and sets the

index of the DataFrame to the EmployeeID. The function should return a table with the EmployeeID as the index and the remaining 25 columns.

Arguments:

  • a DataFrame: Employee Table

Returns:

  • a DataFrame with index of ‘EmployeeID’

After you define the function, call the function and print:

Number of rows

Number of columns

Head of 10 index

Record of employ with ID=999

Problem 2

Define a function get FullName which takes the employees table from your first function in #1 and a single employee ID as arguments, and returns a string with the full name of the employee in the format “LAST, FIRST MIDDLE”. If the given ID does not belong to any employee return the string “UNKNOWN” (in all caps) If no middle name is given only return “LAST, FIRST”. Make sure there are not trailing spaces! If only the middle initial is given the return the full name in the format “LAST, FIRST M”.

Arguments:

  • df (DataFrame): Employee Table
  • empid (int): Employee ID

Returns:

  • String with full name

### After you finish defining your function, get full name for employee id 259

### After you finish defining your function, get full name for employee id 274, 999, 102, but do not call the function one by one.

Print them as:

274, “Jiang, Stephen Y”

999, “Smith, Chadwick nan”

102, “Mu, Zheng W”

Problem 3

Define a function isSales that takes the job title of an employee as string as an argument and return either True if the job title indicates this person works in sales, and False otherwise.

Argument:

  • jobtitle (str)

Returns:

  • True or False

### After defining your function, check if these job tiles are sales job:’Chief Data Scientist’, ‘Sales Manager’, ‘Vice President of Sales’.

If it is a sales job, print the job title + ‘is part of the Sales Department.’; if not, print the job title + ‘belongs to a different department.’

Problem 4

Define a function filterSales with the employee tables as an argument, that returns a new table of the same column_names and row_names containing only row of sales people. You should use the isSales function from the previous problem.

Arguments:

  • employees (DataFrame)

Returns:

  • DataFrame with only people from the Sales Department

###After you define the fuction, call the function and print:

Number of row

Number of columns

Head of 10 index

Record of sales employee with ID=280

Problem 5

Define a function managementCounts which produces a Series of how many employees report to a manager. The Series is indexed by the ManagerID, the count should be performed on the unique EmployeeID. The resulting Series should be order by the number of employees in descending order.

Arguments:

  • employees (DataFrame)

Returns:

  • Series of counts (int), indexed by ManagerID

"Place your order now for a similar assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Order Solution Now

Our Service Charter


1. Professional & Expert Writers: Eminence Papers only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Eminence Papers are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Eminence Papers are known for the timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Eminence Papers, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.