Skip to content

Commit 9a110a1

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

influxdb/_dataframe_client.py

+2-3
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)