Use data analysis tools
Use popular data analysis tools to analyze time series data stored in an InfluxDB database.
pandas
Use the pandas Python data analysis library to analyze and visualize time series data stored in InfluxDB Clustered.
...
dataframe = reader.read_pandas()
dataframe = dataframe.set_index('time')
print(dataframe.index)
resample = dataframe.resample("1H")
resample['temp'].mean()
PyArrow
Use PyArrow to read and analyze InfluxDB query results.
...
table = client.query(
'''SELECT *
FROM home
WHERE time >= now() - INTERVAL '90 days'
ORDER BY time'''
)
table.group_by('room').aggregate([('temp', 'mean')])
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.