"Nerd" isn't a culture anymore than "geekyness" is a culture. It's a pejorative, an insult intended to shame the person it's applied to by suggesting they are slightly disgusting, socially disagreeable, ugly, uninteresting etc.
When the woman turned up to a social event and said, "why are the men such nerds" and walked away, that wasn't the men's fault or problem actually (unless they wanted to date her). That's her problem: she's the one lobbing insults against an entire group despite not knowing the individuals in question. They do not need to do anything to welcome such a person into their "culture" because she wasn't talking about a culture to begin with.
The story given above, assuming the last "men were at fault" statement is related to the first part, is sadly reflective of all the worst stereotypes of young women. The woman in question decided what career to pursue because she didn't want to be seen as hanging out with uncool people during her studies. Guess what - nerds would be happy to hang out with "non nerds" too, if they came to their events and didn't act all judgey and superior. This is not something unique to women, it's rather, that men seem more willing to either embrace it or tolerate it.
Presumably she is now in a field with fewer "nerds", but quite possibly earning less money than if she'd stuck with CS. Too bad for her.