Hands-On Lab 1: Using Pandas DataFrames in Python Python lab using native libraries (OS, Lists) as well as the Pandas dataframe library, to prepare you

Hands-On Lab 1: Using Pandas
DataFrames in Python
Python lab using native libraries (OS, Lists) as well as the Pandas dataframe library, to
prepare you for common techniques in reading and organizing data.
100 points.  
In this lab we're going to learn how to read in several spreadsheet files. Each file
contains annual superstore sales data for a particular market during a particular year.
There are 28 files in all. We will read the contents from each file into a pandas
dataframe where we can extract meaningful information from the data.
Video Tutorial
Dataset Download

  1. Download Module1Data.zip to your local computer. Unzip the file.
  2. In your Google Drive account, create a new folder called “MSDA683”. Copy your
    unzipped Module1Data folder to the new MSDA683 in your Google Drive account.
  3. Create a new notebook called “MSDA683-Module1” in https://colab.google.com
  4. Mount your Google Drive to your notebook
  5. In a new cell, Import the OS and pandas libraries.
  6. In a new cell, create a ‘path’ variable equal to the location of your Google Drive
    module 1 folder.
  7. Create a variable called ‘salesFolder’ that connects to the path location.
  8. Create a variable called ‘li’ with an empty list
  9. Iterate through the files in your salesFolder. For each file
  10. Set the filename to the current file

2 – MSDA 683, NIU College of Business, OM & IS Dept. 2025. J. Kearsing

  1. Print the path and file name
  2. Read the contents of that file into a dataframe
  3. Print the number of records in the new dataframe.
  4. Append the dataframe to your list.
  5. Create a new variable called “frame” that sets the contents of the list to a new
    dataframe.
  6. In a new cell, show the first five records of the new dataframe.
  7. In a new cell, show the dataframe info.
  8. In a new cell, show the count of unique values in each column.

3 – MSDA 683, NIU College of Business, OM & IS Dept. 2025. J. Kearsing
14. In a new cell, show the total Sales, Profit, the Cost of Goods Sold, and Profit

4 – MSDA 683, NIU College of Business, OM & IS Dept. 2025. J. Kearsing
Margin.

5 – MSDA 683, NIU College of Business, OM & IS Dept. 2025. J. Kearsing
15. In a new cell, show the total Sales and Profit grouped by Market, rounded to two
decimal points.

  1. In a new cell, show total Sales and Profit with a calculated Cost of Goods Sold
    column, grouped by Market.
  2. STUDENT PROBLEM 1. In a new cell, show the total Sales, total Profit,
    calculated COGS, and calculated Profit Margin, grouped by Market, and sorted by
    highest Profit Margin. Output should look like this:

6 – MSDA 683, NIU College of Business, OM & IS Dept. 2025. J. Kearsing
18. STUDENT PROBLEM 2. In a new cell, show a descending list of total Sales
grouped by County. Output should look like this:

  1. STUDENT PROBLEM 3. In a new cell, show a descending list of total Profit by
    Sub-Category (i.e. product type), rounded two decimal places. Output should look like

7 – MSDA 683, NIU College of Business, OM & IS Dept. 2025. J. Kearsing
this:

  1. STUDENT PROBLEM 4. In a new cell, show total Sales, total Profit, and
    calculated Profit Margin, by Sub-Category, sorted by highest Profit Margin. Output
    should look like this:

8 – MSDA 683, NIU College of Business, OM & IS Dept. 2025. J. Kearsing

Read more

Assignment: Applying Adult Learning Principles in EMS Education Chapter: 4 – Principles of Adult Learning Unit Focus: Andragogy and Learner-Centered Instruction Due Date: August 31 Submission Type: Online

Assignment: Applying Adult Learning Principles in EMS Education Chapter: 4 – Principles of Adult Learning Unit Focus: Andragogy and Learner-Centered Instruction Due Date: August 31 Submission Type: Online text or file upload Points: 20 Grading Method: Simple direct grading ? Overview Adult learners in EMS education bring prior experience, self-direction, and real-world

By laurenzo

ARM2 — ARM2 TASK 1: POPULATION HEALTH DATA PAPER INFORMATICS FOR TRANSFORMING NURSING CARE — D029 PRFA — ARM2

ARM2 — ARM2 TASK 1: POPULATION HEALTH DATA PAPER INFORMATICS FOR TRANSFORMING NURSING CARE — D029 PRFA — ARM2 COMPETENCIES 7067.1.1 : Analyze Underpinnings of Nursing Informatics The learner analyzes the theoretical and conceptual underpinnings of the nursing informatics scope and standards to improve patient experience and health outcomes. 7067.1.2

By Jamez Blake

The Biblical Worldview of Law Enforcement Officers Assignment is an essay to motivate you to be internalizing how the Word of God can be applied to La

Biblical Worldview of Law Enforcement Officers Assignment Instructions Overview The Biblical Worldview of Law Enforcement Officers Assignment is an essay to motivate you to be internalizing how the Word of God can be applied to Law Enforcement Officers.  As Leaders and Policy Makers in Criminal Justice, it is imperative that

By laurenzo

You've made some progress in justifying the appropriate facility layout for your organization. Nevertheless, you also know that you have only skimmed

Please help me write a paper assignment. This assignment must be 5-7 pages (excluding the title and reference page), and include a minimum of 5 scholarly resources. The writing should integrate scholarly resources, reflect academic expectations, and current APA standards. Assignment 5: Compose a Reflection on Oriented Facility Planning. Instructions

By laurenzo
✍️ Get Writing Help
WhatsApp