Levene’s test can be carried out to check that variances are equal for all samples. The test can check the assumption of equal variances before running a parametric test like One-Way ANOVA in Python. If your data is not following a normal distribution Levene’s test is preferred before Barlett’s.