This guide details how to connect to a C3 cluster, search for data you want to use,
fetch that data, and convert it into a form that you can easily analyze.
Connecting to a C3 Cluster
Install Jupyter Notebook & Connect to the C3 Container
Getting the Documentation of the Internal Data Model
Step 1: Connecting to the C3 Cluster
Step 2:
Fetching Instances of Types
Data Fetching Documentations if you are:
- Using Browser Developing Tools: https://developer.c3.ai/docs/7.12.0/guide/guide-c3aisuite-basic/di-monitoring-and-troubleshooting
- using Python Jupyter Notebook: https://developer.c3.ai/docs/7.12.0/topic/ds-jupyter-notebooks
A Code Example in Jupyter Notebook:
import pandas as pd raw_df = c3.BlockInfo.fetch(spec={ 'limit': -1, 'filter': 'exists(prp_bf_lr)', 'order': 'descending(id)', 'include': 'pct_i_l,pct_t_l,prp_res_lr,pop10_ha_lr,hu10_ha_lr,eroom_ha_lr,med10_age,prp_bf_lr' }) df = pd.DataFrame(raw_df.objs.toJson()) df.head()
Converting Fetch results to usable forms in Jupyter Notebook
TODO:
Executing Metrics on Time series data
TODO: