Giancarlo Stanton made it back from his sprained right knee in time to play nine games before the end of the regular season.

He hit fairly well in those 34 plate appearances, and Aaron Boone liked what he saw from Stanton in left field.

“Is it perfect? No,” Boone said twice of Stanton’s situation on Wednesday.

Though it was hardly the way the Yankees would have liked to have seen Stanton’s season play out, Boone believes Stanton got enough work in to set himself up for a productive postseason.

“I do,” Boone said when asked if he thought Stanton got enough at-bats before Friday’s Game 1 against the Twins in The Bronx.

“You’d like to have him have a season and really have been there and going in with a ton of at-bats, but that said, to be able to get out there the final 10 days of the season or so I think was really valuable.”

In those nine games, Stanton had a pair of doubles and two homers to go along with five walks and 11 strikeouts, while looking OK both on the bases and in the outfield.

“I thought his at-bat quality was pretty good,” Boone said before the Yankees worked out at the Stadium on Wednesday. “And physically, I thought he was moving around well. Whether in the outfield, his ability to move laterally, cut some balls off in the gap, come in and make throws [and] the way he looked running the bases, running out extra-base hits.”

The Yankees are at least considering playing Stanton in left, with Brett Gardner in center and Aaron Judge in right, which could let them go with DJ LeMahieu at first base and Edwin Encarnacion — if he’s deemed healthy after recovering from an oblique strain — at DH.

“I feel like he’s in a pretty good place heading in,” Boone said of Stanton. “Is it perfect? No. But I feel good about what he was able to do. It went about as well as we could have hoped, considering where we were a month ago.”

Stanton finished the regular season a year ago on a bit of a tear, with three homers and three doubles in his final six games, only to go without an extra-base hit in the ALDS against the Red Sox after his home run in the wild-card win over Oakland.

That ended an up-and-down first season in The Bronx for Stanton. And he followed it up with an injury-plagued 2019, missing significant time with biceps, shoulder and leg injuries.

But a productive stretch in the playoffs would alter that narrative.

Stanton has one more day to get ready — even if it’s not perfect.