This function is another I wrote to for my predictive modeling class. It will format a binary confusion matrix nicely.
A Function to Format Statistics from a Pandas DataFrame
This is a simple function I wrote to nicely format various statistics for the numerical columns in a pandas dataframe, for my predictive modeling class. I thought I would post it here in case it is of use to anyone else, and mostly so I can find it again when I lose it.