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

Commit ddd8261

Browse files
committed
Add support for custom indexes for query in the DataFrameClient (#785)
1 parent 055d71f commit ddd8261

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

influxdb/tests/dataframe_client_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,11 +1266,11 @@ def test_query_custom_index(self):
12661266
"SELECT count(value) FROM cpu_load_short WHERE region=$region"
12671267
bind_params = {'region': 'us-west'}
12681268
with _mocked_session(cli, 'GET', 200, data):
1269-
result = cli.query(iql, bind_params=bind_params, data_frame_index=["time", "host"])
1269+
result = cli.query(iql, bind_params=bind_params,
1270+
data_frame_index=["time", "host"])
12701271

12711272
_data_frame = result['cpu_load_short']
12721273
print(_data_frame)
12731274

1274-
self.assertListEqual(["time", "host"], list(_data_frame.index.names))
1275-
1276-
1275+
self.assertListEqual(["time", "host"],
1276+
list(_data_frame.index.names))

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