Commit fe958d11 authored by Aurélien Campéas's avatar Aurélien Campéas
Browse files

util: drop multiindex case since it has been unsuported from some time

parent dbce79810ccf
......@@ -71,17 +71,8 @@ def _fromjson(jsonb, tsname):
result = pd.read_json(jsonb, typ='series', dtype=False)
result.name = tsname
if isinstance(result.index, pd.DatetimeIndex):
result = num2float(result)
return result
# multi index case
columns = result.index.values.tolist()
columns.remove(tsname)
result = pd.read_json(jsonb, typ='frame',
convert_dates=columns)
result.set_index(sorted(columns), inplace=True)
return num2float(result.iloc[:, 0]) # get a Series object
result = num2float(result)
return result
class SeriesServices(object):
......
Supports Markdown
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