diff --git a/miscplot/variability.py b/miscplot/variability.py index b380aac..20c3c01 100644 --- a/miscplot/variability.py +++ b/miscplot/variability.py @@ -59,9 +59,9 @@ def variability_plot( vert_groups = set(vert_groups) df = polars.DataFrame(data_table) -# zero_bad: bool = True, -# if zero_bad: -# df.filter(col(data_col) != 0) + + # Drop nulls and nans so that the boxplots don't disappear + df = polars.drop_nulls(subset=[data_col]).drop_nans(subset=[data_col]) df = df.sort(groups) df_groups = df.select(groups).unique(maintain_order=True).with_row_index(name='x_pos')