misc

Define several global variables, paths and basic functions.

Functions

add_mean_ls(ip, inhabit)

check_absolute_path(path)

Checks if the current working directory is inhabit.

check_empty(df, source)

clean_nan(df[, on_cols])

Remove rows which contain NaN value in specific columns from df.

create_stocks(inhabit, ip)

debug_messages(message, ip)

prints debugging information.

get_age_classes(ip)

get_full_inhabit(all_dimensions, ip, ...)

get_negative_dict()

Create NaN entries for range(-8, 0) entries.

get_save_path(folder1, folder2)

get_split(ip, split_large_dwell)

load_inhabit_moving(inhabit_or_move, year, ...)

Load the data from inhabit_{year}.csv or move_out_{year}.csv to dataframes.

order_move_in_want(move_in_want_v, ip)

Allocate searching percentiles of households to free dwellings according to their preferences.

printd(str, ip)

Prints debugging information if flag is set.

save_params_to_file(ip)

stock_assertions(dwell_stock, hh_stock)

timer_func(func)

Decorator for adding time measurements.