starts_with

starts_with(prefix, *, case=True)

Build a selector that returns columns starting with prefix.

Examples

import pandas as pd
from pytimetk.utils.selection import starts_with

columns = pd.Index(["value", "val_growth", "category"])
starts_with("val")(columns)
['value', 'val_growth']