title: How to use describe () by group for all variables?
body: <p>I would appreciate if you could let me know how to apply describe () to calculate summary statistics by group. My data (<code>TrainSet</code>) is like the following but there is a lot of coulmns:</p>
  
  <pre><code>Financial Distress  x1       x2      x3
  0                   1.28    0.02    0.87
  0                   1.27    0.01    0.82
  0                   1.05    -0.06   0.92
  1                   1.11    -0.02   0.86
  0                   1.06    0.11    0.81
  0                   1.06    0.08    0.88
  1                   0.87    -0.03   0.79
  </code></pre>
  
  <p>I want to compute the summary statistics by "Financial Distress" as it is shown below:</p>
  
  <pre><code>           count          mean       std     min     25%      50%    75%     max                            
  cat index                                                                                           
  x1  0         2474        1.4        1.3     0.07    0.95      1.1   1.54    38.1                           
      1         95          0.7        -1.7     0.02    2.9      2.1   1.75    11.2                           
  x2  0         2474        0.9        1.7     0.02    1.9      1.4   1.75    11.2                            
      1         95          .45        1.95     0.07    2.8      1.6   2.94    20.12                          
  x3  0         2474        2.4        1.5     0.07    0.85      1.2   1.3    30.1                            
      1         95          1.9        2.3     0.33    6.1      0.15   1.66    12.3
  </code></pre>
  
  <p>I wrote the following code but it does not provide the answer in the aforementioned format. </p>
  
  <pre><code>Statistics=pd.concat([TrainSet[TrainSet["Financial Distress"]==0].describe(),TrainSet[TrainSet["Financial Distress"]==1].describe()])
  Statistics.to_csv("Descriptive Statistics1.csv")
  </code></pre>
  
  <p>Thanks in advance.</p>
  
  <p>The result of coldspeed's solution:</p>
  
  <pre><code>    Financial Distress  count   mean               std
  x1           0          2474    1.398623286     1.320468688
  x1           1           95     1.028107053     0.360206966
  x10          0          2474    0.143310534     0.136257947
  x10          1           95    -0.032919408     0.080409407
  x100         0          2474    0.141875505     0.348992946
  x100         1           95     0.115789474     0.321669776
  </code></pre>