h2o-py/h2o/frame.py
def nlevels(self):
        """
        Get the number of factor levels for each categorical column.

        :returns: A list of the number of levels per column.
        """
        levels = self.levels()
        return [len(l) for l in levels] if levels else 0
def nlevels(self):
        levels = self.levels()
        return [len(l) for l in levels] if levels else 0
def nlevels ( self ) : levels = self . levels ( ) return [ len ( l ) for l in levels ] if levels else 0
Get the number of factor levels for each categorical column.

        :returns: A list of the number of levels per column.
Get the number of factor levels for each categorical column .