title: Is it possible to change pandas column data type within a sklearn pipeline?
body: <p>Sklearn pipeline I am using has multiple transformers but one of the initial transformers returns <strong>numerical type</strong> and the consecutive one takes <strong>object type</strong> variables.</p>
  
  <p>Basically I need squeeze in a:</p>
  
  <pre><code>data[col] = data[col].astype(object)
  </code></pre>
  
  <p>for the required columns within the pipeline.</p>
  
  <p>Is there any way to do it?</p>
  
  <p>Note: I am using <a href="https://feature-engine.readthedocs.io/en/latest/" rel="nofollow noreferrer"><em>Feature-engine</em></a> transformers.</p>