Skip to content

Commit 6c45f30

Browse files
committed
Add support for custom indexes for query in the DataFrameClient (influxdata#785)
1 parent 64aeddd commit 6c45f30

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

influxdb/influxdb08/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,10 @@ def write_points(self, data, time_precision='s', *args, **kwargs):
292292
:type batch_size: int
293293
294294
"""
295-
def list_chunks(l, n):
295+
def list_chunks(data_list, n):
296296
"""Yield successive n-sized chunks from l."""
297-
for i in xrange(0, len(l), n):
298-
yield l[i:i + n]
297+
for i in xrange(0, len(data_list), n):
298+
yield data_list[i:i + n]
299299

300300
batch_size = kwargs.get('batch_size')
301301
if batch_size and batch_size > 0:

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