Data Family Operations

๐Ÿ“˜

Version changes

Changes available for markovml package version >= 1.3.1

Fetch a Data Family

Data Family can be fetched by name or id

import markov

# Fetching Data Family by id
data_family = markov.datautils.get_data_family_by_id("Paste data family id here")

# Fetching Data Family by name
markov.datautils.get_data_family_by_name("Paste data family name here")

Fetch Datasets in a Data Family

import markov
markov.datautils.get_ds_info_for_df("Paste data family id here")

Update the Data Family for a Dataset

Data Family ID can be changed to another valid data family ID for any dataset

import markov

# Update datafamily
markov.datautils.update_datafamily(
    ds_id="Dataset id of the dataset we want to update the datafamily",
    df_id="datafamily id to be updated to"
)