title: I got this error 'DataFrame.dtypes for data must be int, float, bool or categorical'
body: <p>I'm going to train this as an xgboost model.</p>
  <p><a href="https://i.stack.imgur.com/HbWjZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/HbWjZ.png" alt="enter image description here" /></a></p>
  <p>'start_time','end_time' column was in yyyy-mm-dd hh:mm:ss format.</p>
  <p>I changed it to string using astype(str) and changed it to yyyymmddhhmmss format using regular expressions.</p>
  <pre><code>xgb_model = xgboost.XGBClassifier(eta=0.1, nrounds=1000, max_depth=8, colsample_bytree=0.5, scale_pos_weight=1.1, booster='gbtree', 
                                    metric='multi:softmax')
  hr_pred = xgb_model.fit(x_train, np.ravel(y_train, order='C')).predict(x_test)
  print(classification_report(y_test, hr_pred))
  </code></pre>
  <p>But this kind of error occurred and I've never seen like this before.</p>
  <blockquote>
  <pre><code>ValueError: DataFrame.dtypes for data must be int, float, bool or categorical.  When
              categorical type is supplied, DMatrix parameter
              `enable_categorical` must be set to `True`.start_time, end_time
  </code></pre>
  </blockquote>
  <p>how can I solve this problem?</p>
  <p>Thanks for your help.</p>