Skip to content
Snippets Groups Projects
Commit 80a29fa1 authored by Maxim Gonchar's avatar Maxim Gonchar
Browse files

feat: remove missing data from printing

parent d2d549c4
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,14 @@ class ParametersWrapper(NestedMKDict):
if columns is None:
columns = ['path', 'value', 'central', 'sigma', 'label']
df = DataFrame(dct, columns=columns)
df.fillna('', inplace=True)
for key in ('central', 'sigma'):
if df[key].isna().all():
del df[key]
else:
df[key].fillna('-', inplace=True)
df['value'].fillna('-', inplace=True)
df['label'].fillna('', inplace=True)
return df
def to_string(self, **kwargs) -> str:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment