title: Pandas DataFrame spliced results become series
body: <p>I am wondering if there is a way to preserving pandas dataframe datatype after I slice the data.</p>
  
  <p>For example if I have a pandas DataFrame called df with multiple columns, when I slice one column it is no longer a DataFrame but a series. Is there a way to keep it as a dataframe?</p>
  
  <p>What I mean is that</p>
  
  <pre><code>type(df)
  pandas.core.frame.DataFrame
  </code></pre>
  
  <p>but </p>
  
  <pre><code>type(df.iloc[:,0])
  pandas.core.series.Series
  </code></pre>
  
  <p>Only way I figured of getting around it is to explicitly redefine it as a dataframe.</p>
  
  <pre><code>pd.DataFrame(df.iloc[:,0])
  </code></pre>