Building Fast Queries on a CSV
- Guided Project
- 1.5 hours
- Intermediate
- Python
Practice implementing an inventory system for a laptop store using Python classes, dictionaries, and binary search.
Overview
In this project, you'll take on the role of a Python developer tasked with creating an inventory system for an online laptop store. You'll leverage your skills in Python classes, dictionaries, and binary search algorithms to efficiently represent the store's inventory data and implement fast queries to answer key business questions.
This hands-on project allows you to apply advanced Python concepts and algorithms to a real-world scenario. You'll preprocess the inventory data into suitable data structures and develop optimized methods to quickly look up information and check promotional criteria. This project will enhance your ability to work with classes, leverage data structures, and implement searching algorithms, valuable skills for any Python developer.
Objective: Use Python classes, dictionaries, and binary search to build an efficient inventory system that can quickly answer business queries for an online laptop store.
What You'll Learn
- ✓ Build indexes for a CSV using dictionaries
Before You Start
- ✓ Implementing Python programming fundamentals like variables, control flow, and functions
- ✓ Manipulating lists and dictionaries in Python to store and access data
- ✓ Applying binary search and sorting algorithms to lists in Python
- ✓ Analyzing time and space complexity to characterize algorithm performance
Project Steps
10 steps
- 1 The Dataset
- 2 Inventory Class
- 3 Finding a Laptop From the Id
- 4 Improving Id Lookups
- 5 Comparing the Performance
- 6 Two Laptop Promotion
- 7 Optimizing Laptop Promotion
- 8 Comparing Promotion Functions
- 9 Finding Laptops Within a Budget
- 10 Next Steps
Join 1M+ data learners on Dataquest.
- 1
Create a free account
- 2
Choose a learning path
- 3
Complete exercises and projects
- 4
Advance your career