Commit 75a99bbc authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

fixed two small bugs in ada handler and heatmap

parent d5621eb8
Pipeline #2267 failed with stage
in 1 minute and 13 seconds
......@@ -70,7 +70,7 @@ class HeatmapTask(AnalyticTask):
# sort by ranking_value
df['sort_value'] = df['feature'].apply(
lambda x: stats[stats['feature'] == x][ranking_method][0])
lambda x: stats[stats['feature'] == x][ranking_method].tolist()[0])
df = df.sort_values('sort_value', ascending=False).drop('sort_value', 1)
# discard rows according to max_rows
......
......@@ -53,5 +53,4 @@ class AdaHandler(ETLHandler):
token = [s for s in cookie.split(';')
if s.startswith('PLAY2AUTH_SESS_ID')][0]
token = '='.join(token.split('=')[1:]) # remove PLAY2AUTH_SESS_ID=
token = token[1:-1] # remove surrounding ''
return token
"""This module provides test for the pca task."""
import json
import pandas as pd
from fractalis.analytics.tasks.pca.main import PCATask
......
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