title: Getting "Perfect separation detected, results not available" while building the Logistic Regression model
body: <p>As part of my assignment I am building logistic regression model but I am getting an error "Perfect separation detected, results not available" while building it.</p>
  
  <pre><code>**X_train :-**
  
        year     amt_spnt      rank
  1   -1.723034   -0.418500   0.272727
  2   0.716660    2.088507    -0.636364
  3   1.174102    -0.558333   -1.545455
  4   -0.503187   -1.297451   1.181818
  5   1.326583    -0.628250   -1.545455
  
  **y_train :-** 
  
  1    0
  2    1
  3    1
  4    0
  5    1
  Name: result, dtype: int64
  
  **Logistic Model code:-** 
  
  import statsmodels.api as sm
  logm1 = sm.GLM(y_train,(sm.add_constant(X_train)), family = sm.families.Binomial())
  logm1.fit().summary()
  
  **Dataset before and after scaling**
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/yb0le.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yb0le.png" alt="Full Dataset attached here"></a></p>
  
  <pre><code>**Image for evidence:-** 
  
  [![Evidence][1]][1] 
  
  [1]: https://i.stack.imgur.com/cTncA.png
  </code></pre>