class_docstr: Base column selector expression/proxy.
class_docstr_tok: ["Base","column","selector","expression\/proxy","."]
docstr: Invert the selector.
docstr_tok: ["Invert","the","selector","."]
code: def __invert__(self) -> Self:
      """Invert the selector."""
      if hasattr(self, "_attrs"):
          inverted = all() - self
          inverted._repr_override = f"~{self!r}"  # type: ignore[attr-defined]
      else:
          inverted = ~self.as_expr()
      return inverted
  
imports: from __future__ import annotations
  import re
  from datetime import timezone
  from functools import reduce
  from operator import or_
  from typing import TYPE_CHECKING, Any, Collection, Literal, Mapping, overload
  from polars import functions
  from polars.datatypes import FLOAT_DTYPES, INTEGER_DTYPES, NUMERIC_DTYPES, SIGNED_INTEGER_DTYPES, TEMPORAL_DTYPES, UNSIGNED_INTEGER_DTYPES, Binary, Boolean, Categorical, Date, Datetime, Decimal, Duration, Object, String, Time, is_polars_dtype
  from polars.expr import Expr
  from polars.utils.deprecation import deprecate_nonkeyword_arguments
  from polars.utils.various import is_column
label_desc: Use image node_id 3 for calling the _selector_proxy_ obj's underlying member method code with example usage: obj.__invert__() and returns: inverted