When traveling, especially as a female, use common sense. Don't walk alone at night, be aware of your surroundings, and don't go anywhere with strangers!
I would avoid Southeast at night, same goes for the green line. Other than that, DC is perfectly safe.
Baltimore is another story....I do not go there often at all and cannot give a recommendation one way or the other.