Closed da-ekchajzer closed 2 years ago
In component.py
sub['_scope3'] = sub[['core_units', 'die_size_per_core']].apply(lambda x: x[0] * x[1])
throws
raise KeyError(key) from err KeyError: 0
when
multiple line of cpu.csv are selected and the maximum value have to get selected
http:///localhost:5000/v1/component/cpu
{ "process": 22 }
Fixed in fbd9a01. Pandas apply function has the default axis parameter set to 0 (columns). Changing it 1 (i.e. apply on rows) fixes the issue.
apply
Bug description
In component.py
sub['_scope3'] = sub[['core_units', 'die_size_per_core']].apply(lambda x: x[0] * x[1])
throws
when
multiple line of cpu.csv are selected and the maximum value have to get selected
Exemple
http:///localhost:5000/v1/component/cpu