Way, way back when I was in school, the physics department was almost all male. Only one female on the faculty that I can remember, and only a few female physics majors (none in my year.) And it’s a big school with a significant physics department.
Looking back I realize how absolutely skewed my environment was, compared to the rest of the world.