How do I rotate a large batch of images where each image has a specific rotation level in a corresponding CSV

I have a large batch of images (thousands) and a corresponding CSV file that contains the names of the image files and a unique rotation value.

I need a way to apply each unique rotation to its corresponding image quickly and in bulk.

Can anyone help with this?

Cheers,

Mate