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.FeatureServiceorFeatureView.There are 2 types of Datasets: Saved and Logged.
Saved Datasets are generated manually when calling
tecton.get_historical_features()by setting thesaveparameter.Logged Datasets are generated automatically when declaring a
tecton.interactive.FeatureServicewithtecton.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.TectonDataFramecontaining 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.TectonDataFramecontaining 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
nameDataset name
-