Hi @star1621 , see this link for make PCA, is a good example:
I suggest you put a reproducible example of data for better help you: