Skip to content
Snippets Groups Projects
Commit 4c8410df authored by BRONES Romain's avatar BRONES Romain
Browse files

fix: Exception on attribute names

* typo naming...
parent 297c2ff2
No related branches found
No related tags found
No related merge requests found
......@@ -542,14 +542,14 @@ def _extract_scalar(attribute, method, date1, date2, db):
return None
# Fabricate return pandas.Series
d=pd.Series(index=[datetime.datetime.fromtimestamp(_date),], data=[_data,], name=attribute)
d=pd.Series(index=[datetime.datetime.fromtimestamp(_date),], data=[_value,], name=attribute)
return d
# =====================
if method == "between":
# Cut the time horizon in chunks
cdates = _chunkerize(attribute, dateStart, dateStop, db)
cdates = _chunkerize(attribute, date1, date2, db)
# Array to hold data
data = []
......@@ -577,7 +577,7 @@ def _extract_scalar(attribute, method, date1, date2, db):
_date = _ArrayTimeStampToDatetime(_date/1000.0)
# Fabricate return pandas.Series
data.append(pd.Series(index=_date, data=_data,name=attribute))
data.append(pd.Series(index=_date, data=_value,name=attribute))
# Concatenate chunks
return pd.concat(data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment