Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For most data analysis situations, FetchResults need to be massaged a little bit to be useful.
Here, we show the typical ways FetchResults can be used.

Python

In python, generally, you get the 'objs' property from the FetchResults object, then call the toJson() function.
This function returns an array of dictionaries each with keys equal to the requested properties of the fetched
type. This works well with the pandas DataFrame constructor which accepts such an array. The returned
DataFrame object can now be analyzed very easily. We show an example below.

A Code Example in Jupyter Notebook:

...

Executing Metrics on Time series data

Timeseries data is stored on C3 types using the

Official C3 documentation for Time Series metrics:https://developer.c3.ai/docs/7.12.0/guide/guide-c3aisuite-basic/metrics-home

...