Well Panik is batting .343 with the Mets. He was batting .235 with SF. So we are seeing Panik playing above his level.
Panik has had solid hitting seasons in the past. Not .343, but he was over .300 in his first 173 games. Also batted .288 with 28 doubles, 5 triples, and 10 hr's in 138 games in 2017. But .254 last year with a .307 obp, and a measly .332 slugging. .235-.310-.317 this season. So he has struggled for a long stretch.
So his resurgence looks like a classic case of change of scenery combined with a rising tide raising all ships. He was in a rut in SF, and he got some excitement back in his game coming to NY. Especially with how the team is playing right now, and the energy which surrounds the team. I think Guillorme and Lagares have seen their games lifted due to the teams momentum as well. Interesting stuff.