https://github.com/ckyle30/pa3
Programming Assignment #3 - De Guzman, Ckyle Ewxel Olrick B. - 2ECE-A
https://github.com/ckyle30/pa3
Last synced: over 1 year ago
JSON representation
Programming Assignment #3 - De Guzman, Ckyle Ewxel Olrick B. - 2ECE-A
- Host: GitHub
- URL: https://github.com/ckyle30/pa3
- Owner: Ckyle30
- Created: 2024-09-15T08:34:20.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-15T12:18:41.000Z (almost 2 years ago)
- Last Synced: 2025-01-31T13:43:40.847Z (over 1 year ago)
- Language: Jupyter Notebook
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
># PYTHON DATA ANALYSIS (PANDAS)
## Overview
This repository contains Python scripts for data analysis using the Pandas library. The scripts address problems from Experiment 3 of the Advanced Computer Programming and Algorithms course.
## Task
1. **Problem 1**
- **Purpose**: Loads a CSV file into a DataFrame and displays the first five and last five rows.
- **Instructions**:
- Load the `cars.csv` file into a DataFrame named `cars`.
- Display the first five and last five rows of the DataFrame.
2. **Problem 2**
- **Purpose**: Performs subsetting, slicing, and indexing operations on the DataFrame to extract specific information.
- **Instructions**:
- Display the first five rows with odd-numbered columns (1, 3, 5, 7, etc.).
- Find the row that contains the ‘Model’ of ‘Mazda RX4’.
- Determine the number of cylinders (`cyl`) for the car model ‘Camaro Z28’.
- Determine the number of cylinders (`cyl`) and gear type (`gear`) for the car models ‘Mazda RX4 Wag’, ‘Ford Pantera L’, and ‘Honda Civic’.
-
## How to Use
1. Download the `cars.csv` file from [this link](http://bit.ly/Cars_file) and save it to your default user folder.
2. Run the scripts using Jupyter Notebook.
## Author
**De Guzman, Ckyle Ewxel Olrick B.**
**Section: 2ECE-A**
**GitHub Username**: Ckyle30
## Changelog
1. Fixed minor typos
2. Reuploaded PA3 file due to code errors and typos
3. Fixed minor issue regarding the output in camaro's cylinder