Move function merge_ts_da from notebook to brownian.py