misc

Define several global variables, paths and basic functions.

This module contains utility functions for the Inhabit housing allocation model. It provides functions for data manipulation, path handling, validation, and various preprocessing operations for household and dwelling data.

Functions

clean_nan(df[, on_cols])

Remove rows containing NaN values in specified columns from DataFrame.

filters

Define filters for SOEP (Socio-Economic Panel) dataframes.

get_negative_dict()

Create a dictionary mapping negative integers to NaN values.

timer_func(func)

Decorator that measures and prints the execution time of a function.