Hi,
Could you provide us with a minimal reproducible example (dummy data + script) so we can run the code ourselves and see where the issue lies.
Thanks, PJ