June 2018
Beginner
508 pages
13h 8m
English
First things first, let's produce the data. We start from the ch13-dataprep Notebook:
#1import jsonimport randomfrom datetime import date, timedeltaimport faker
Cell #1 takes care of the imports. We have already encountered them, apart from faker. You can use this module to prepare fake data. It's very useful in tests, when you prepare your fixtures, to get all sorts of things such as names, email addresses, phone numbers, and credit card details. It is all fake, of course.
Read now
Unlock full access