Chi - Square test for Validating Sampled Data
I have a large dataset (stored in a dataframe) that needs to be sampled, so I have performed sampling on it (sampled data also stored in a dataframe) and now wish to check if the sample data is correctly representative of the population data using the chi-square test (for categorical variables). I did not get a good source for the python implementation for such a case so it would be very appreciated if anyone could help me out with how to go about solving this problem.
Topic chi-square-test sampling python categorical-data
Category Data Science