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

Commit 6c45f30

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

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