title: How to convert enum datatype into Numric in H20
body: <p>I have import my dataset into h2o flow, I have one column which is categorical type, I wanna convert this into numerical data type. </p>
  
  <p>If I use pandas for this task I'll do like this,</p>
  
  <pre><code>df['category_column'] = df['category_column'].astype('category')
  df['category_column'] = df['category_column'].apply(lambda x: x.cat.codes)
  </code></pre>
  
  <p>How to do this in h2o flow,</p>
  
  <p>I tried following,</p>
  
  <ol>
  <li>while parsing data i changed Data type to numeric from enum but data shows <code>·</code> like this.</li>
  <li>I tried <code>convert to numeric</code> option, But it didn't work as I wish.</li>
  </ol>
  
  <p>I don't know whether I'm going in right direction or not. 
  Please help me to solve this issue.</p>
  
  <p><strong>Update on question as suggested:</strong></p>
  
  <p>Why GLM forced me to use numerical column?</p>
  
  <p>Error evaluating cell</p>
  
  <p>My dataset looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/4z0ks.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4z0ks.png" alt="enter image description here"></a></p>
  
  <p>When I use GLM to build model and, <code>I</code> is my response_column i'm getting following error</p>
  
  <blockquote>
    <p>Error calling POST /3/ModelBuilders/glm with opts {"model_id":"glm-e2ed0066-636c-4c71-bf8...</p>
    
    <blockquote>
      <p>ERROR MESSAGE: Illegal argument(s) for GLM model: glm-e2ed0066-636c-4c71-bf8c-04525eb05002. Details: ERRR on field: _response: Regression requires numeric response, got categorical. For more information visit: <a href="http://jira.h2o.ai/browse/TN-2" rel="nofollow noreferrer">http://jira.h2o.ai/browse/TN-2</a></p>
    </blockquote>
  </blockquote>