This commit is contained in:
steffen-illium
2021-05-27 12:04:48 +02:00
parent 669ab30b5e
commit 827c2b9ac2
4 changed files with 8 additions and 11 deletions

View File

@@ -45,11 +45,7 @@ class FactoryMonitor:
def to_pd_dataframe(self):
import pandas as pd
df = pd.DataFrame.from_dict(self.to_dict())
try:
df.loc[0] = df.iloc[0].fillna(0)
except IndexError:
return None
df = df.fillna(method='ffill')
df.fillna(0)
return df
def reset(self):

View File

@@ -15,7 +15,7 @@ def plot(filepath, ext='png', tag='monitor', **kwargs):
def prepare_plot(filepath, results_df, ext='png', tag=''):
# %%
_ = sns.lineplot(data=results_df)
_ = sns.lineplot(data=results_df, ci='sd', x='step')
# %%
sns.set_theme(palette='husl', style='whitegrid')