balance.weighting_methods.adjust_null¶
- balance.weighting_methods.adjust_null.adjust_null(sample_df: DataFrame, sample_weights: Series, target_df: DataFrame, target_weights: Series, *args, **kwargs) Dict[str, Dict[str, str] | Series] [source]¶
Doesn’t apply any adjustment to the data. Returns the design weights as they are. This may be useful when one needs the output of Sample.adjust() (i.e.: an adjusted object), but wishes to not run any model for it.
- Parameters:
sample_df (pd.DataFrame) – a dataframe representing the sample
sample_weights (pd.Series) – design weights for sample
target_df (pd.DataFrame) – a dataframe representing the target
target_weights (pd.Series) – design weights for target
- Returns:
Dict of weights (original sample weights) and model (with method = null_adjustment)
- Return type:
Dict[str, Union[Dict[str, str], pd.Series]]