set default value of cs as np.nan