File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ result = influxdb.query('weather') ...
130
130
% Another example with more options
131
131
result = influxdb.query(TEST_TAGS) ...
132
132
.fields('mean(temperature)', 'sum(rain)') ...
133
- .groupByTags('city ', 'station ') ...
133
+ .groupByTags('country ', 'city ') ...
134
134
.groupByTime('3h', 'linear') ...
135
135
.limit(100) ...
136
136
.execute();
@@ -142,9 +142,12 @@ The result of a query is an object that provides additional functionalities:
142
142
% Check which series are present in a result
143
143
series_names = result.names()
144
144
145
- % Extract a specific series
145
+ % Get series with matching name
146
146
weather = result.series('weather')
147
147
148
+ % When grouping by tags, get series with matching tags
149
+ weather_bcn = result.series('weather', 'city', 'barcelona')
150
+
148
151
% Check which fields are present in a series
149
152
field_names = weather.fields()
150
153
You can’t perform that action at this time.
0 commit comments