August 2021
Beginner to intermediate
112 pages
1h 29m
English
You can find the brain teasers code at https://pragprog.com/titles/d-pandas/pandas-brain-teasers/.
I’ve tried to keep the code as short as possible and remove anything that is not related to the teaser. This is not how you’ll normally write code.
Some code examples are shown in the IPython interactive prompt. You should write the following two imports in your IPython session to follow the examples:
| | In [1]: import pandas as pd |
| | In [2]: import numpy as np |
When referring to a brain teaser, I assume you ran the code with the %run magic. For example
| | In [3]: %run sanchez.py |
This will load all the variables defined in the file into your IPython, even if there was an exception.
Read now
Unlock full access