Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 64aeddd

Browse files
committed
Add support for custom indexes for query in the DataFrameClient (#785)
1 parent ddd8261 commit 64aeddd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

influxdb/_dataframe_client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ def query(self,
182182
containing all results within that chunk
183183
:param chunk_size: Size of each chunk to tell InfluxDB to use.
184184
:param dropna: drop columns where all values are missing
185-
:param data_frame_index: the list of columns that are used as DataFrame index
185+
:param data_frame_index: the list of columns that
186+
are used as DataFrame index
186187
:returns: the queried data
187188
:rtype: :class:`~.ResultSet`
188189
"""
@@ -198,7 +199,8 @@ def query(self,
198199
results = super(DataFrameClient, self).query(query, **query_args)
199200
if query.strip().upper().startswith("SELECT"):
200201
if len(results) > 0:
201-
return self._to_dataframe(results, dropna, data_frame_index=data_frame_index)
202+
return self._to_dataframe(results, dropna,
203+
data_frame_index=data_frame_index)
202204
else:
203205
return {}
204206
else:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy