df['UV_Flux'] = df['Teff_K'].apply(lambda T: integrate_uv_flux(T)) df['Relative_UV_Index'] = df['UV_Flux'].apply(lambda uv_flux: calculate_relative_uv_index(uv_flux...