When you want to apply a minor tweak to the document, it should not take long to Feature columns voucher. Such a simple activity does not have to require extra education or running through manuals to understand it. Using the appropriate document modifying instrument, you will not spend more time than is needed for such a swift change. Use DocHub to simplify your modifying process regardless if you are an experienced user or if it is your first time using a web-based editor service. This tool will require minutes or so to learn how to Feature columns voucher. The sole thing required to get more productive with editing is a DocHub account.
A simple document editor like DocHub will help you optimize the amount of time you need to spend on document modifying no matter your previous experience with such resources. Create an account now and improve your productivity instantly with DocHub!
scikit-learn tip number 38 need to get the feature names output by a column transformer use git feature names which now works with pass-through columns which is new in version .23 so lets take a look at the example now column transformer which is what were talking about allows you to apply different transformations to different columns so in this case weve got four features were going to one hot encode two of them and pass through the remainder which is the other two columns now pass-through means just include them in the output unmodified now we do the fit transform and that method does the transformation it outputs seven columns and the obvious question is what are the identities of those seven columns and what we do to find that out is use the get feature names method of the column transformer it shows five features output by one hot encoder the first three came from the first feature which was embarked and we can see that the categories in embarked were c q and s and then the