Skip to content

Commit f59d06e

Browse files
committed
Remove dict comprehension for py2.6
Signed-off-by: Can ZHANG <zhangcan@letv.com>
1 parent 333b43c commit f59d06e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

influxdb/influxdb08/dataframe_client.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,11 @@ def query(self, query, time_precision='s', chunked=False):
9696
elif len(result) == 1:
9797
return self._to_dataframe(result[0], time_precision)
9898
else:
99-
return {time_series['name']: self._to_dataframe(time_series,
100-
time_precision)
101-
for time_series in result}
99+
ret = {}
100+
for time_series in result:
101+
ret[time_series['name']] = self._to_dataframe(time_series,
102+
time_precision)
103+
return ret
102104

103105
def _to_dataframe(self, json_result, time_precision):
104106
dataframe = pd.DataFrame(data=json_result['points'],

0 commit comments

Comments
 (0)