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 9a110a1

Browse filesBrowse files
committed
Add support for custom indexes for query in the DataFrameClient (influxdata#785)
1 parent d3fd851 commit 9a110a1
Copy full SHA for 9a110a1

File tree

Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed

‎influxdb/_dataframe_client.py

Copy file name to clipboardExpand all lines: influxdb/_dataframe_client.py
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import math
1010
from collections import defaultdict
11-
from typing import List
1211

1312
import pandas as pd
1413
import numpy as np
@@ -154,7 +153,7 @@ def query(self,
154153
chunk_size=0,
155154
method="GET",
156155
dropna=True,
157-
data_frame_index: List[str] = None):
156+
data_frame_index=None):
158157
"""
159158
Query data into a DataFrame.
160159
@@ -205,7 +204,7 @@ def query(self,
205204
else:
206205
return results
207206

208-
def _to_dataframe(self, rs, dropna=True, data_frame_index: List[str] = None):
207+
def _to_dataframe(self, rs, dropna=True, data_frame_index=None):
209208
result = defaultdict(list)
210209
if isinstance(rs, list):
211210
return map(self._to_dataframe, rs,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.