Pingyao, is absolutely safe for solo female travelers. It is a relatively small and peaceful place highly known for its well-preserved ancient Chinese architecture. The locals are friendly and often willing to assist tourists. However, like anywhere, it is always recommended to maintain basic safety precautions such as not venturing out late alone in isolated areas and keeping your personal belongings secure.