tecton.interactive.Dataset

class tecton.interactive.Dataset(proto, spark_df, pandas_df)

Dataset class.

Persisted data consisting of entity & request keys, timestamps, and calculated features. Datasets are associated with either a tecton.interactive.FeatureService or FeatureView.

There are 2 types of Datasets: Saved and Logged.

Saved Datasets are generated manually when calling tecton.get_historical_features() by setting the save parameter.

Logged Datasets are generated automatically when declaring a tecton.interactive.FeatureService with tecton.LoggingConfig, and the data is continuously added to it when requesting online data from the FeatureService.

To get an existing Dataset, call tecton.get_dataset().

Methods

get_spine_dataframe

Get a tecton.TectonDataFrame containing the spine.

summary

Print out a summary of this class’s attributes.

to_pandas

Converts the Dataset to a Pandas DataFrame and returns it.

to_spark

Converts the Dataset to a Spark DataFrame and returns it.

get_spine_dataframe()

Get a tecton.TectonDataFrame containing the spine.

summary()

Print out a summary of this class’s attributes.

to_pandas()

Converts the Dataset to a Pandas DataFrame and returns it.

to_spark()

Converts the Dataset to a Spark DataFrame and returns it.

Attributes

name

Dataset name