title: ValueError : Pandas data cast to numpy dtype of object. Check input data with np.asarray(data)
body: <p>I am trying to predict churn of telecom user by logistic regression model, I am getting </p>
  
  <blockquote>
    <p>ValueError: Pandas data cast to numpy dtype of object. Check input data with np.asarray(data).</p>
  </blockquote>
  
  <pre><code># Putting feature variable to X
  X = churn_data.drop(['churn_status','Ph_No.'],axis=1)
  
  # Putting response variable to y
  y = churn_data['churn_status']
  
  X_train, X_test, y_train, y_test = train_test_split(X,y, train_size=0.7,test_size=0.3,random_state=100)
  
  logm1 = sm.GLM(y_train,(sm.add_constant(X_train)), family = sm.families.Binomial())
  logm1.fit().summary()
  </code></pre>