Just prior to the Battle of Hogwarts, Pansy was the only person in the Great Hall to speak up in favour of handing Harry over to Voldemort.
However, she did not participate on either side during the battle.
Pansy is shipped with a wide variety of characters in both het and femslash pairings.
Though Draco Malfoy officially winds up marrying Astoria, the Pansy/Draco pairing is usually considered "semi-canonical" because the two attended the Yule Ball together and Pansy has displayed concern for and even tenderness toward Draco throughout the series (which has been interpreted by fans both as an indication of a relationship or as a one-sided crush).
Pansy and Draco also become the Slytherin Prefects for their year, and are both members of Umbridge's Inquisitorial Squad during their fifth year.
Throughout the series, Pansy shows devotion to Draco.
"Sometimes when you push, you accidentally pull." That particular play on words is something Charlie Weasley had never expected to experience, himself... Meanwhile Auror Harry Potter is looking for a murderer who's already chosen his next victim...
The last book gave us new perspective about Malfoy.
Examples of this include her distress after Draco is attacked by Buckbeak in their third year and is a victim of Harry's Sectumsempra curse in sixth year.
Additionally, on the Hogwarts Express in the sixth book, Pansy is shown stroking Draco's hair while his head is in her lap, and she expresses concern that he might not come back for a seventh year at Hogwarts.
Additionally, Pansy is sometimes paired with one of the other Slytherins in her year, such as Blaise Zabini, Millicent Bulstrode, or Theodore Nott.
Cross-gen pairings featuring Pansy can also be found, both with Pansy as the younger party (such as when paired with Lucius or Snape) and as the older party (such as when paired with Scorpius or Rose).