8000 Add support for custom indexes for query in the DataFrameClient (#785) · khmak3/influxdb-python@64aeddd · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 64aeddd

Browse files
committed
Add support for custom indexes for query in the DataFrameClient (influxdata#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)
0