13.5 Extras
Here are some ideas for the reader to add to these projects.
13.5.1 Use Seaborn for plotting
An alternative to the pyplot package is the Seaborn package. This package also provides statistical plotting functions. It provides a wider variety of styling options, permitting more colorful (and perhaps more informative) plots.
See https://seaborn.pydata.org for more information.
This module is based on matplotlib
, making it compatible with JupyterLab.
Note that the Seaborn package can work directly with a list-of-dictionary structure. This matches the ND JSON format used for acquiring and cleaning the data.
Using a list-of-dictionary type suggests it might be better to avoid the analysis model structure, and stick with dictionaries created by the clean application. Doing this might sacrifice some model-specific processing and validation functionality.
On the other hand, the pydantic
package offers a built-in dict()
method that covers a sophisticated analysis model object into...