Encyclopedia Autonomica

Encyclopedia Autonomica

Saturday Code Snippet

Batch Visualizing Histograms from a Pandas DataFrame

Jan Daniel Semrau (MFin, CAIO)'s avatar
Jan Daniel Semrau (MFin, CAIO)
May 05, 2024
∙ Paid

Assume you have a dataset like this

Source: A categorical text variable that you’d like to visualize, and

Compound: A float variable that you’d like to see in a histogram.

Then, this little script will help you do that.

Prerequisites

Necessary imports

import matplotlib.pyplot as plt
import pandas as pd

A Pandas DataFrame

Visualizer

Then this little script will…

User's avatar

Continue reading this post for free, courtesy of Jan Daniel Semrau (MFin, CAIO).

Or purchase a paid subscription.
© 2026 JDS · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture