pandas: pandas.DataFrame.describe returns information on only one column
<p>For a certain Kaggle dataset (rules prohibit me from sharing the data here, but is readily accessible <a href="https://www.kaggle.com/c/predicting-red-hat-business-value/data" rel="nofollow">here</a>), </p>

<pre><code>import pandas
df_train = pandas.read_csv(
    "01 - Data/act_train.csv.zip"
)
df_train.describe()
</code></pre>

<p>I get:</p>

<pre><code>&gt;&gt;&gt; df_train.describe()
            outcome
count  2.197291e+06
mean   4.439544e-01
std    4.968491e-01
min    0.000000e+00
25%    0.000000e+00
50%    0.000000e+00
75%    1.000000e+00
max    1.000000e+00
</code></pre>

<p>whereas for the same dataset <code>df_train.columns</code> gives me: </p>

<pre><code>&gt;&gt;&gt; df_train.columns
Index(['people_id', 'activity_id', 'date', 'activity_category', 'char_1',
       'char_2', 'char_3', 'char_4', 'char_5', 'char_6', 'char_7', 'char_8',
       'char_9', 'char_10', 'outcome'],
      dtype='object')
</code></pre>

<p>and <code>df_train.dtypes</code> gives me: </p>

<pre><code>&gt;&gt;&gt; df_train.dtypes
people_id            object
activity_id          object
date                 object
activity_category    object
char_1               object
char_2               object
char_3               object
char_4               object
char_5               object
char_6               object
char_7               object
char_8               object
char_9               object
char_10              object
outcome               int64
dtype: object
</code></pre>

<p>Am I missing some reason why pandas only <code>describe</code>s one column in the dataset?</p>

<p>By default, <code>describe</code> only works on numeric dtype columns. Add a keyword-argument <code>include='all'</code>. <a href="http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.describe.html" rel="nofollow">From the documentation</a>:</p>

<blockquote>
  <p>If include is the string âallâ, the output column-set will match the
  input one.</p>
</blockquote>

<p>To clarify, the default arguments to <code>describe</code> are <code>include=None, exclude=None</code>. The behavior that results is:</p>

<blockquote>
  <p>None to both (default). The result will include only numeric-typed
  columns or, if none are, only categorical columns.</p>
</blockquote>

<p>Also, from the <strong>Notes</strong> section:</p>

<blockquote>
  <p>The output DataFrame index depends on the requested dtypes:</p>
  
  <p>For numeric dtypes, it will include: count, mean, std, min, max, and
  lower, 50, and upper percentiles.</p>
  
  <p>For object dtypes (e.g. timestamps or strings), the index will include
  the count, unique, most common, and frequency of the most common.
  Timestamps also include the first and last items.</p>
</blockquote>

python python-3.x pandas