Polarized fermions in one dimension: Density and polarization from complex Langevin calculations, perturbation theory, and the virial expansion