The code build a correlation like heat but using chi-square test for catagorical variables. Python and R have built in libraries for producing heatmap for correlation test but there is no such library to produce heat map for chi-square test of association.
Test data csv file is also uploaded