title: How to load large CSV into keras model?
body: <p>I need to convert large csv into one hot encode np.ndarray for Keras Model.</p>
  
  <pre><code>For ex: csv data = 
  
    F1  F2  F3  
  1.'M' 'N' 'I' 
  2.'-' 'M' 'K'
  
  Each Column's Possible Values
  F1: ['-', 'M', 'N']
  F2: ['-', 'A', 'B', 'M', 'N']
  F3: ['-', 'I', 'J', 'K']
  
  Expected Value(One hot encode in np.array)
     F1       F2                F3  
  1. 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0
  2. 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1
  </code></pre>
  
  <p>I'm able read csv, then parse row by row.
  But it's slow, and I've a very large file.
  Is there a way to use "pd.dataframe.apply" to convert to one hot encode?</p>