I wrote the following function to calculate statistical tests between two categories across all pandas columns in parallel -
I was able to extract the categories using da