(self)
return df
pandas dataframe: dataframe of cell execution counts and times
pandas dataframe: dataframe of cell execution counts and times
pandas dataframe : dataframe of cell execution counts and times
def metrics(self):
        """pandas dataframe: dataframe of cell execution counts and times"""
        df = pd.DataFrame(columns=["filename", "cell", "value", "type"])

        for i, cell in enumerate(self.cells):
            execution_count = cell.get("execution_count")
            if not execution_count:
                continue
            name = "Out [{}]".format(str(execution_count))
            value = cell.metadata.get("papermill", {}).get("duration", 0.0)
            df.loc[i] = self.filename, name, value, "time (s)"
        return df
def metrics ( self ) : df = pd . DataFrame ( columns = [ "filename" , "cell" , "value" , "type" ] ) for i , cell in enumerate ( self . cells ) : execution_count = cell . get ( "execution_count" ) if not execution_count : continue name = "Out [{}]" . format ( str ( execution_count ) ) value = cell . metadata . get ( "papermill" , { } ) . get ( "duration" , 0.0 ) df . loc [ i ] = self . filename , name , value , "time (s)" return df