Return the number of unique values in a column

def count_unique_(self, field):
        """
        Return the number of unique values in a column
        """
        try:
            num = self.df[field].nunique()
        except Exception as e:
            self.err(e, "Can not count unique values")
            return
        self.ok("Found", num, "unique values in column", field)