Hydrogen forms +1 ions and has one valence electron in an s orbital, which is a reason to put it in column 1 along with the alkali metals (even though it is not a metal). Hydrogen also forms -1 ions and is one electron short of a filled valence, which supports locating it in column 17 with the halogen.