Data Family Operations

📘

Version changes

Changes available for markovml package version >= 1.3.1

Fetch a Data Family

You can use data utilities like markov.datautils.get_data_family_by_id() or markov.datautils.get_data_family_by_name() to fetch a Data Family.

1. Fetch by ID

Sample Code

import markov

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

Result

2. Fetch by Name

Sample Code

import markov

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

Result

Fetch Datasets in a Data Family

You can also fetch the datasets within a data family using the get_ds_info_for_df()method.

Sample Code

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

Result

Update the Data Family for a Dataset

Data Family ID can be changed to another valid data family ID for any dataset using the markov.datautils.update_datafamily() as shown below:

Sample Code

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"
)

What’s Next