PITTSBURGH (AP) – Miguel Andújar had three hits, Diego Castillo added two and the Pittsburgh Pirates beat the playoff-bound St. Louis Cardinals 5-3 in the regular season finale.

Kevin Newman, Rodolfo Castro and Ji Hwan Bae drove in runs for Pittsburgh.

Manny Banuelos (2-1) picked up the win in relief.

Johan Ramirez worked the ninth for his second save of the season and first with the Pirates.

Tommy Edman had three of St. Louis’ eight hits. Cardinals slugger.

Albert Pujols was given the day off in the final regular season game of his 22-year career.

St. Louis hosts Philadelphia in the wild-card round of the playoffs.