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
orFeatureView
.There are 2 types of Datasets: Saved and Logged.
Saved Datasets are generated manually when calling
tecton.get_historical_features()
by setting thesave
parameter.Logged Datasets are generated automatically when declaring a
tecton.interactive.FeatureService
withtecton.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 a
tecton.DataFrame
containing the spine.Print out a summary of this class’s attributes.
Converts the Dataset to a Pandas DataFrame and returns it.
Converts the Dataset to a Spark DataFrame and returns it.
-
get_spine_dataframe
()¶ Get a
tecton.DataFrame
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
-