File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,8 @@ def query(self,
182
182
containing all results within that chunk
183
183
:param chunk_size: Size of each chunk to tell InfluxDB to use.
184
184
: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
186
187
:returns: the queried data
187
188
:rtype: :class:`~.ResultSet`
188
189
"""
@@ -198,7 +199,8 @@ def query(self,
198
199
results = super (DataFrameClient , self ).query (query , ** query_args )
199
200
if query .strip ().upper ().startswith ("SELECT" ):
200
201
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 )
202
204
else :
203
205
return {}
204
206
else :
You can’t perform that action at this time.
0 commit comments