standardize_sdmx()
Standardize a DataFrame by applying column and value transformations.
Usage
standardize_sdmx(
df,
mapping,
cat_indicator=False,
)Parameters
df: pd.DataFrame-
The input DataFrame with raw data.
mapping: dict-
A dictionary containing the mapping DataFrame and other relevant information.
cat_indicator: bool = False- Whether OBS_VALUE is a categorical indicator. Default is False.
Returns
pd.DataFrame-
The standardized DataFrame with columns transformed according to
the mapping.