influxdb-python icon indicating copy to clipboard operation
influxdb-python copied to clipboard

Multiple queries don't work when using the DataFrameClient

Open atbarker opened this issue 10 years ago • 1 comments

I am attempting to use multiple queries delimited by semicolons with the DataFrameClient. It seems to work with the regular InfluxDBClient. I get this error message. Has anyone encountered this issue or have a work around?

File "pandasclient.py", line 18, in queryandprint df = client.query('select * from "ts.vcpu.stalls" where time > now() - 26s ; select * from "ts.vcpu.gp" where time > now() - 26s') File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/influxdb/_dataframe_client.py", line 82, in query return self._to_dataframe(results) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/influxdb/_dataframe_client.py", line 104, in _to_dataframe for key, data in rs.items(): AttributeError: 'list' object has no attribute 'items'

atbarker avatar Jul 19 '16 17:07 atbarker

I cannot reproduce this issue from current master, feel free to reopen if this problem is still occurring!

xginn8 avatar Dec 12 '17 13:12 xginn8