Minecraft wiki entry for Panda, associated text: Worried pandas:
Avoid the player and most hostile mobs, except slimes, magma cubes, ghasts, shulkers, phantoms and the ender dragon.
Shake and hide their faces during thunderstorms.
Do not eat bamboo or cake items on their own.