Overleaf paper (view): https://www.overleaf.com/read/kpnprcqmfssx
A file named entropy.py includes functions to calculate password entropy, character frequency, calculate hash frequencies of passwords, and plot graphs of this data.
The entire password dataset along with precalculated entropys are also included.