def selectnotnone ( table , field , complement = False ) : return select ( table , field , lambda v : v is not None , complement = complement )
select only not null values python
Select rows where the given field is not None .
def selectnotnone(table, field, complement=False):
    """Select rows where the given field is not `None`."""

    return select(table, field, lambda v: v is not None,
                  complement=complement)