def isNonNull(requestContext, seriesList):

    def transform(v):
        if v is None:
            return 0
        else:
            return 1

    for series in seriesList:
        series.name = "isNonNull(%s)" % (series.name)
        series.pathExpression = series.name
        values = [transform(v) for v in series]
        series.extend(values)
        del series[:len(values)]
    return seriesList
:type board: List[List[int]]
dataset/ETHPy150Open brutasse/graphite-api/graphite_api/functions.py/isNonNull--crossover with--dataset/ETHPy150Open kamyu104/LeetCode/Python/game-of-life.py/Solution.gameOfLife