Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit ddd8261

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

File tree

1 file changed

+4
-4
lines changed
Filter options

1 file changed

+4
-4
lines changed

‎influxdb/tests/dataframe_client_test.py

Copy file name to clipboardExpand all lines: influxdb/tests/dataframe_client_test.py
+4-4
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.