How can I pass specific columns to scikit-learn for training machine learning models?

I am working on a machine learning project in Python using Scikit-learn. I have a dataset with many features, but I’m not sure which features to include in my model. How can I pass specific columns to Scikit-learn for machine learning models? Can someone provide an example of how to do this using Pandas dataframes?

I’m getting stuck on how to pass specific columns to Scikit-learn for machine learning models. Can someone provide some guidance and feedback on the above code snippet? Thank you.