def resample_interp(x_old, x_new, y_old=None, df_old=None):
    if (df_old is not None):
        data_new = multiInterp(x_new, x_old, df_old.values.T)
        df_new = pd.DataFrame(data=data_new.T, columns=df_old.columns.values)
        return (x_new, df_new)
    if (y_old is not None):
        return (x_new, np.interp(x_new, x_old, y_old))
def resample_interp(x_old, x_new, y_old=None, df_old=None):
    if (df_old is not None):
        data_new = multiInterp(x_new, x_old, df_old.values.T)
        df_new = pd.DataFrame(data=data_new.T, columns=df_old.columns.values)
        return (x_new, df_new)
    if (y_old is not None):
        return (x_new, np.interp(x_new, x_old, y_old))