Hi everyone,
if you use the code snippet to get the feature names, you have to be careful, that your preprocessor in the question before included the categorical preprocessor on the first position. Otherwise the feature names will be in the wrong order! Maybe it will be useful to include a note at the code snippet.
Best