Commit cc4f17af authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

some test refactoring and a bugfix regarding meta data

parent 2ebbd81a
......@@ -108,9 +108,10 @@ class ETL(Task, metaclass=abc.ABCMeta):
value = redis.get(name='data:{}'.format(
assert value is not None
data_state = json.loads(value)
features = data_frame.get('feature')
if features:
features = features.unique().tolist()
if 'feature' in data_frame.columns:
features = data_frame['feature'].unique().tolist()
features = []
data_state['loaded'] = True
data_state['meta']['features'] = features
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment