Data Visualization
General Info
Useful Snippets

13.0.1 Histogram

Example:

import pandas as pd

# First create a dataframe
DF = pd.DataFrame()

# Now create new columns and set them equal to your lists
DF['column_name']  = [1,2,3,6,45,4,4,4,5,3,2,2,3,2,4,4,2,3,4,3,3,2,3,4,3,2,6,6,7,6,5,4,4,3,2,4,8,8,6,5,5]
DF['column_two']   = [2,3,6,45,4,4,4,5,3,2,2,3,2,4,4,2,3,4,3,3,2,3,4,3,2,6,6,7,6,5,4,4,3,2,4,8,8,6,5,5,4]
DF['column_three'] = [3,6,45,4,4,4,5,3,2,2,3,2,4,4,2,3,4,3,3,2,3,4,3,2,6,6,7,6,5,4,4,3,2,4,8,8,6,5,5,2,3]
DF['labels']       = ['A','A','B','A','B','C','A','C','A','C','A','B','C','B','A','B','C','A','B','A','B','C','B','C','B','C','B','A','B','B','B','A','B','C','B','A','C','C','B','C','A']

DF['column_name'].hist()         # plot a basic histogram
DF['column_name'].hist(bins = 3) # Specify the number of bins