def type2sign(df):
    df['sign'] = np.where((df.type == 'cosmic-swingset-end-block-start'), (- 1), 1)
    return df
def type2sign(df):
    df['sign'] = np.where((df.type == 'cosmic-swingset-end-block-start'), (- 1), 1)
    return df