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…