def METHOD_NAME(self, x: Any, use_coords: bool = False) -> Any:
    """
    Computes the operation on the given value or matrix.
    """
    if use_coords:
        return OPERATIONS[self.operation](x, self.value)  # type: ignore
    if self.operation == "=":
        x.loc[~x.isnull()] = self.value
        return x
    return OPERATIONS[self.operation](x, self.value)  # type: ignore