Skip to main content
Version: 1.2.0

Parquet example

from featurestore import Client, ParquetFile

# Initialise feature store client
client = Client("ip:port")
client.auth.login()

# Set project specifics
project = client.projects.create("demo")

# Create the parquet source
parquet = ParquetFile("<path to parquet file>")
parquet_schema = client.extract_schema_from_source(parquet)

# Register the feature set
my_feature_set = project.feature_sets.register(parquet_schema, "feature_set_name", primary_key=["key_name"])

# Ingest to cache
my_feature_set.ingest(parquet)

# Retrieve feature set
ref = my_feature_set.retrieve()
ref.download()

Feedback