Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Other

D598 Analytics Programming Task 3: Analytics Programming Presentation and Code Explanation Western Governors University

Rating
-
Sold
-
Pages
7
Uploaded on
04-01-2026
Written in
2025/2026

D598 Analytics Programming Task 3: Analytics Programming Presentation and Code Explanation Western Governors University

Institution
Course

Content preview

D598 Analytics Programming Task 3: Analytics
Programming Presentation and Code Explanation 2026-
2027 Western Governors University




Caitlin Atkins
D598 – Analytics Programming
Task 3: Presentation

A. Explain how the code works for the program you submitted in Task 2.

1. Import pandas as pd
Import numpy as np
Import matplotlib.pyplot as plt


Before performing data analysis, importing Python language libraries capable of
specific performances is essential. Pandas are used in nearly every data analysis
document because of their ability to manipulate data and read, clean, filter, and group
files. While NumPy was not used during this task, it is helpful for numerical computing
and data processing. Finally, matplotlib is essential for data visualizations.

2. Data = pd.read_excel(‘D598 Data Set.xlsx)

To load the Excel file into the data frame, pd.read_excel() is used. The title of the
data file is included in parentheses. The file is then named to be called on throughout the
analysis.

3. duplicates = data.duplicated()
4. duplicates
5. data[duplicates]

These code lines are used to identify any duplicates in the data frame. First, a

, Boolean series identifies duplicate columns and marks them as a variable named ‘duplicates.
After, duplicates are used to display those duplicate items. Finally, data[duplicates] retrieves
the duplicate rows in the data frame.


6. gdata = data.groupby('Business
State').mean(numeric_only=True)
7. gdata

Using these lines, the data frame will be grouped by state; the mean for each column
will be calculated, and only numeric values will be displayed. Gdata will print the new data
frame based on the previous line of code.

8. grouped_data = gdata.agg(['mean', 'median', 'min', 'max'])
9. print(grouped_data)
10. new_dataframe = grouped_data

Written for

Institution
Course

Document information

Uploaded on
January 4, 2026
Number of pages
7
Written in
2025/2026
Type
OTHER
Person
Unknown

Subjects

$14.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
smartzone Liberty University
Follow You need to be logged in order to follow users or courses
Sold
3359
Member since
6 year
Number of followers
2296
Documents
14608
Last sold
2 hours ago
AMAIZING EDUCATION WORLD

GET ALL KIND OF EXAMS ON THIS PAGE ,COMPLETE TEST BANKS,SUMMARIES,STUDY GUIDES,PROJECT PAPERS,ASSIGNMENTS,CASE STUDIES, YOU CAN ALSO COMMUNICATE WITH THE SELLER FOR ANY PRE-ORDER,ORDER AND ETC.

3.6

610 reviews

5
271
4
96
3
106
2
32
1
105

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions