How can I create feature interactions using PolynomialFeatures in scikit-learn?

I am working on a machine learning task and would like to create feature interactions using Scikit-learn’s PolynomialFeatures module.

Here’s my current code:

This code runs without any errors, but I am not sure if the features are being correctly transformed. Can someone please check if this code is correct or if there is a better way to create feature interactions with PolynomialFeatures in scikit-learn? Any feedback or suggestions would be appreciated.