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

Commit 9a110a1

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

Lines 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)
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