Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Practical Data Analysis Cookbook

You're reading from   Practical Data Analysis Cookbook Over 60 practical recipes on data exploration and analysis

Arrow left icon
Product type Paperback
Published in Apr 2016
Publisher
ISBN-13 9781783551668
Length 384 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Tomasz Drabas Tomasz Drabas
Author Profile Icon Tomasz Drabas
Tomasz Drabas
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Preparing the Data FREE CHAPTER 2. Exploring the Data 3. Classification Techniques 4. Clustering Techniques 5. Reducing Dimensions 6. Regression Methods 7. Time Series Techniques 8. Graphs 9. Natural Language Processing 10. Discrete Choice Models 11. Simulations Index

Using SimPy to simulate the refueling process of a gas station

If you own a car, visiting a gas station every other week has most likely become part of your routine: pull over next to the pump, swipe your card (or pay inside), fuel up your car, and leave.

However, if you put yourself in the shoes of a gas station owner before it is even built, a number of possible questions come to mind:

  • What is the frequency of cars pulling over to fill up?
  • How would that affect the wait time for each driver? (We do not want a driver to wait for too long as he or she might choose a competitor.)
  • Will the number of distributors be enough to satisfy demand?
  • How often will I have to call the supplier to replenish the tanks?
  • How much profit can I make?

These are, however, just a handful of questions that you, as the owner of a future gas station, might be asking yourself.

There are also those what-if questions. What if I add two more distributors? What if I put bigger tanks so that I do not have to call the supplier...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime