• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 7 pages
Other

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

Document preview thumbnail
Preview 2 out of 7 pages

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

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

Document information

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

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

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
3.6
(627)
Sold
3466
Followers
2298
Items
14918
Last sold
2 days ago



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