title: How to load features and label from dataframe in Python?
body: <p>I'm trying to use keras with tensorflow to train a network. I've my own digit dataset of Myanmar language. I'm trying to develop Myanmar digits recognition using neural network using python. I've train.csv file and test.csv file which have a header with format label,pixel0,...,pixel783. I used pandas to load dataframe. But I want to split the dataframe into features and labels.</p>
  
  <pre><code>import pandas as pd
  dataframe = pd.read_csv("mmdigitstrain.csv")
  dataframe2 = pd.read_csv("mmdigitstest.csv")
  
  (X_train, y_train) = splitfeaturesandlabelfromdataframe
  (X_test, y_test) = splitfeaturesandlabelfromdataframe2
  </code></pre>