Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@deprecated('1.0.0')
def papermill_record_dataframe(self):
"""pandas dataframe: dataframe of cell scraps"""
# Meant for backwards compatibility to papermill's dataframe method
return pd.DataFrame(
[
[name, self.scraps[name].data, "record", self.filename]
for name in sorted(self.scraps.keys())
if self.scraps[name].data is not None
],
columns=["name", "value", "type", "filename"],
)
@deprecated('0.4.0', '`metrics`')
def papermill_metrics(self):
return self.metrics
@deprecated('0.4.0', 'metrics')
def papermill_metrics(self):
return self.metrics
@deprecated('1.0.0')
def papermill_dataframe(self):
"""pandas dataframe: dataframe of notebook parameters and cell scraps"""
# Meant for backwards compatibility to papermill's dataframe method
return self.parameter_dataframe.append(
self.papermill_record_dataframe, ignore_index=True
)