def yloop(i): c = SkyCoord(ra=df2['alpha_j2000'][i]*u.degree, dec=df2['delta_j2000'][i]*u.degree) #print i val = c.cartesian.y return float(val)