title: How to select only few columns in scikit learn column selector pipeline?
body: <p>I was reading the scikitlearn tutorial about column transformer. The given example (<a href="https://scikit-learn.org/stable/modules/generated/sklearn.compose.make_column_selector.html#sklearn.compose.make_column_selector" rel="noreferrer">https://scikit-learn.org/stable/modules/generated/sklearn.compose.make_column_selector.html#sklearn.compose.make_column_selector</a>) works, but when I tried to select only few columns, It gives me error.</p>
  
  <h1>MWE</h1>
  
  <pre><code>import numpy as np
  import pandas as pd
  import seaborn as sns
  
  from sklearn.compose import make_column_transformer
  from sklearn.compose import make_column_selector
  
  df = sns.load_dataset('tips')
  mycols = ['tip','sex']
  
  
  ct = make_column_transformer(make_column_selector(pattern=mycols)
  ct.fit_transform(df)
  </code></pre>
  
  <h1>Required</h1>
  
  <p>I want only the select columns in the output.</p>
  
  <p><strong>NOTE</strong><br>
  Of course, I know I can do <code>df[mycols]</code>, I am looking for scikit learn pipeline example.</p>