From the course: Python for Data Visualization
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Create sample data - Python Tutorial
From the course: Python for Data Visualization
Create sample data
- [Instructor] In order to create visualizations, you first need to have data to work with. So in this video I'll teach you how to create sample data in the form of a car loan table. So what we have here is a car loan of $34,690 with a 7.02% interest rate over 60 months. There are multiple approaches to structure your data and to a form acceptable by Pandas DataFrame. One approach is by using a nested list where in the first row, we have the first month of our car payment. So we have one for the month, we have our starting balance, we have a repayment, which is $687.23. We have how much of that repayment is going toward interest. We have how much of that payment is going toward the principal of the loan. And then after a payment we have how much is our new balance? We have the terminal loan, which is how many months we're going to be paying this loan for in total. We have the interest rate for the loan and we also have…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Introduction to pandas1m 30s
-
(Locked)
Create sample data3m 50s
-
(Locked)
Load sample data2m 17s
-
(Locked)
Basic operations1m 57s
-
(Locked)
Simplify with slicing4m 12s
-
(Locked)
Filter and clean data5m 39s
-
(Locked)
Rename and delete columns3m 16s
-
(Locked)
Aggregate functions2m 39s
-
(Locked)
Identify missing data3m 41s
-
(Locked)
Remove or fill in missing data5m 3s
-
(Locked)
Convert pandas DataFrames1m 15s
-
(Locked)
Export pandas DataFrames1m 28s
-
(Locked)
-
-
-