C3 AI Documentation Home

Supported C3-specific APIs on Data

In addition to Pandas APIs, the C3 Data Type supports a number of additional methods for data transformations and data type conversion.

Below is a list of the most relevant C3-specific APIs for Data Science. A given method is either static or member:

  • Member — Requires a specific instance of Data
  • Static — Not associated with a particular instance
API NameStatic or MemberDescription
Data#flattenmemberPerforms flexible denormalization of nested data. Similar to Data#explode, but more powerful.
DataImpl.py#from_pandasstaticConverts a native pandas.DataFrame to an instance of Data. Only available from Python.
DataImpl.py#to_pandasmemberConverts the Data instance to native pandas.DataFrame format. Callable on any instance of Data, but only available from Python.
Data#lazyEvaluationModestaticReturns true if the evaluation mode is lazy. In lazy evaluation mode, data operations only run when the data is actually needed. If false, then the evaluation mode is eager. In eager evaluation mode, data operations run immediately.
Data#setEvaluationModestaticIf parameter is true, sets the evaluation mode to lazy. If false, sets the evaluation mode to eager.

See also

Was this page helpful?