Generating Mock Data with Python! (NumPy, Pandas, & Datetime Libraries)
01:00:25

Video Preview

Generating Mock Data with Python! (NumPy, Pandas, & Datetime Libraries)

Keith Galli 27K views Jan 31, 2020

Download high quality YouTube thumbnails from Generating Mock Data with Python! (NumPy, Pandas, & Datetime Libraries) instantly.

Thumbnail Quality

Choose thumbnail resolution below.

Generating Mock Data with Python! (NumPy, Pandas, & Datetime Libraries)

MAXRESDEFAULT

JPG

Download
Generating Mock Data with Python! (NumPy, Pandas, & Datetime Libraries)

SDDEFAULT

JPG

Download
Generating Mock Data with Python! (NumPy, Pandas, & Datetime Libraries)

HQDEFAULT

JPG

Download
Generating Mock Data with Python! (NumPy, Pandas, & Datetime Libraries)

MQDEFAULT

JPG

Download
Generating Mock Data with Python! (NumPy, Pandas, & Datetime Libraries)

DEFAULT

JPG

Download

Video Information

In this video we write a python script to automatically generate a sales dataset. To do this we use the NumPy, Pandas, Calendar, u0026 Datetime libraries. This is ultimately the data that we used in my last video “Solving real world data science problems with python pandas”.

Link to the last video:
https://youtu.be/vmEHCJofslg

Link to finished code on GitHub:
https://github.com/KeithGalli/Pandas-Data-Science-Tasks/tree/master/Misc

Useful resources!
NumPy Tutorial: https://youtu.be/GB9ByFAIAH4
Pandas Tutorial: https://youtu.be/vmEHCJofslg
Datetime library documentation: https://docs.python.org/3/library/datetime.html

Detailed video description!
We start by creating a simple dataframe and programmatically adding rows of product purchases to it. We use the random library to select these products.

We make our data more realistic by utilizing normal distributions and geometric distributions in numpy to spread out the number of purchases we make and the quantity of each item purchased.

We use the datetime library to allow us to generate thousands of different times for each purchase with the most common times peaking around 12pm and 8pm.

We take a list of the most common US street addresses to help us randomly generate addresses for each purchases.

Hope you guys enjoy! Make sure to subscribe if you haven’t already :)

Practice your Python Pandas data science skills with problems on StrataScratch!
https://stratascratch.com/?via=keith

Join the Python Army to get access to perks!
YouTube - https://www.youtube.com/channel/UCq6XkhO5SZ66N04IcPbqNcw/join
Patreon - https://www.patreon.com/keithgalli

---------------------------------------------

Follow me on social media!
Instagram | https://www.instagram.com/keithgalli/
Twitter | https://twitter.com/keithgalli

---------------------------------------------

Today’s merch!
Creator: @Chris Chann
Website: https://unsatisfied.co/

---------------------------------------------

Video Timeline!
0:00 - Intro u0026 Background Info
1:15 - What we're creating in this video!
2:03 - Start writing code (generating a simple dataframe u0026 csv)
8:26 - Task: Making our data more realistic, selecting some products with higher probability than others
14:15 - Task: Generate 12 months worth of data in 12 csvs (calendar library, f-strings)
18:12 - Make some months have more purchases than others
19:28 - Normal distributions in NumPy
23:43 - Improving speed of our code (making testing easier)
26:41 - Task: Generate random addresses for our data
35:03 - Task: Generate order times for purchases (datetime library overview)
40:02 - Using timedelta objects to add u0026 subtract time from dates
45:09 - Generate a realistic quantity ordered for each product (using numpy geometric distribution)
49:38 - Add multiple items being more likely to be sold together and cleaning code a bit

*I use affiliate links on the products that I recommend. I may earn a purchase commission or a referral bonus from the usage of these links.

Related Videos

Popular Videos

Python Data Science Project Ideas! (for all skill levels)
15:45

Python Data Science Project Ideas! (for all skill levels)

Keith Galli

72K views 6 years ago
Data Analysis with Python for Excel Users - Full Course
3:57:46

Data Analysis with Python for Excel Users - Full Course

freeCodeCamp.org

3.6M views 4 years ago
AI Shifts Burden Of Responsibility to Senior Devs
10:35

AI Shifts Burden Of Responsibility to Senior Devs

Stephen Samuelsen

8 views 1 hour ago
Solving real world data science tasks with Python Beautiful Soup! (movie dataset creation)
3:24:18

Solving real world data science tasks with Python Beautiful Soup! (movie dataset creation)

Keith Galli

292K views 5 years ago
Deep Dive into LLMs like ChatGPT
3:31:24

Deep Dive into LLMs like ChatGPT

Andrej Karpathy

7.7M views 1 year ago
Designing Data-Intensive Applications: Chapters 1 and 2
57:48

Designing Data-Intensive Applications: Chapters 1 and 2

Ben Dicken

160K views Streamed 10 months ago
Solving real world data science tasks with Python Pandas!
1:26:07

Solving real world data science tasks with Python Pandas!

Keith Galli

1.6M views 6 years ago
Data Analytics for Beginners | Data Analytics Training | Data Analytics Course | Intellipaat
3:50:19

Data Analytics for Beginners | Data Analytics Training | Data Analytics Course | Intellipaat

Intellipaat

2.5M views Streamed 5 years ago
تلاوة القرآن للدراسة والتركيز 📚🕛 | راحة وطمأنينة | Peaceful Focus Quran | محمد هشام
3:47:36

تلاوة القرآن للدراسة والتركيز 📚🕛 | راحة وطمأنينة | Peaceful Focus Quran | محمد هشام

Al-Fida

1.3M views 2 days ago
The Physics of Euler's Formula | Laplace Transform Prelude
27:49

The Physics of Euler's Formula | Laplace Transform Prelude

3Blue1Brown

1M views 8 months ago
Solving Real-World Data Science Interview Questions! (with Python Pandas)
1:47:50

Solving Real-World Data Science Interview Questions! (with Python Pandas)

Keith Galli

147K views 3 years ago
Billionaire's WARNING: I'm SELLING. The Crash Is Already Here!
1:45:52

Billionaire's WARNING: I'm SELLING. The Crash Is Already Here!

The Diary Of A CEO

4.8M views 2 days ago
Learn RAG From Scratch – Python AI Tutorial from a LangChain Engineer
2:33:11

Learn RAG From Scratch – Python AI Tutorial from a LangChain Engineer

freeCodeCamp.org

1.4M views 2 years ago
Introduction to Data Processing in Python with Pandas | SciPy 2019 Tutorial | Daniel Chen
3:00:19

Introduction to Data Processing in Python with Pandas | SciPy 2019 Tutorial | Daniel Chen

Enthought

123K views 6 years ago
Comprehensive Python Beautiful Soup Web Scraping Tutorial! (find/find_all, css select, scrape table)
1:13:03

Comprehensive Python Beautiful Soup Web Scraping Tutorial! (find/find_all, css select, scrape table)

Keith Galli

349K views 5 years ago
Identifying Missing and Inconsistent Social Media Data_training
25:43

Identifying Missing and Inconsistent Social Media Data_training

Mathew K Analytics

2 views 6 days ago
10 Python Tips and Tricks For Writing Better Code
39:21

10 Python Tips and Tricks For Writing Better Code

Corey Schafer

1.4M views 7 years ago
Data Science Best Practices with pandas (PyCon 2019)
1:44:17

Data Science Best Practices with pandas (PyCon 2019)

Data School

172K views 7 years ago
Everything you need to know about Classes in Python! (Object Oriented Programming Tutorial)
33:48

Everything you need to know about Classes in Python! (Object Oriented Programming Tutorial)

Keith Galli

194K views 6 years ago
Generative AI Full Course in 1 Hour | GenAI Basics + Live Project using Python (2026)
1:13:10

Generative AI Full Course in 1 Hour | GenAI Basics + Live Project using Python (2026)

Shweta Tech Studio

909 views 4 months ago

Download HD YouTube Video Thumbnails

Generating Mock Data with Python! (NumPy, Pandas, & Datetime Libraries) thumbnail images are available in multiple resolutions including HD, Full HD, SD, and maximum resolution depending on the original uploaded image quality.

TubeSnap helps users instantly preview and download YouTube thumbnail images without watermark, registration, or software installation. All thumbnails are fetched directly from publicly accessible YouTube image servers.

YouTube thumbnails are widely used by bloggers, designers, marketers, content creators, and publishers for article previews, social media posts, presentations, and content inspiration.

The downloader supports thumbnails from gaming videos, music videos, tutorials, livestreams, interviews, podcasts, documentaries, educational videos, sports highlights, and viral YouTube uploads.

Users can access thumbnail downloads on desktop computers, tablets, and smartphones with fast loading performance and multilingual support.

How to Download YouTube Thumbnails

Paste a YouTube video URL into the search field and TubeSnap will instantly generate downloadable thumbnail resolutions for the selected video.

Supported Thumbnail Resolutions

TubeSnap supports default, medium quality, high quality, standard definition, and maximum resolution YouTube thumbnails whenever available from the original video source.

Free Online Thumbnail Extractor

The platform works entirely online without registration, extensions, software downloads, or hidden limitations.