@Override
  public @NotNull String filterModifier(@NotNull String varName, @NotNull ColumnFilter filter) {
    if (filter.isSubstring()) {
      return String.format("%1$s[%1$s.iloc[:, %2$d].apply(str).str.contains('%3$s', regex=%4$s)]",
                           varName, filter.getColumn(), filter.getFilter(), filter.isRegex() ? "True" : "False");
    }

    return String.format("%1$s[%1$s.iloc[:, %2$d].apply(lambda %4$s: bool(%3$s))]",
                         varName, filter.getColumn(), filter.getFilter(), ColumnFilter.VAR_ALIAS);
  }
@Override
  public @NotNull String filterModifier(@NotNull String varName, @NotNull ColumnFilter filter)