title: Load MNIST Dataset in Sklearn-Friendly Format
body: <p>I have loaded the MNIST dataset using the following command:</p>
  
  <pre><code>from dataget import data
  
  dataset = data("mnist").get()
  </code></pre>
  
  <p>How do I convert it to Sklearn-friendly format, i.e. features_train, labels_train, features_test, labels_test?</p>
  
  <p>I have tried "np.loadtxt" but got this error:</p>
  
  <pre><code>ValueError: could not convert string to float: data
  </code></pre>
  
  <p>I have also tried the following lines of code:</p>
  
  <pre><code>df = next(dataset.training_set.random_batch_dataframe_generator(10))
  
  df
  </code></pre>
  
  <p>And it has returned this error:</p>
  
  <pre><code>AttributeError: training_set
  </code></pre>
  
  <p>Please, can someone help me, I have been googling alternative methods but I still receive errors. Thank you!</p>
  
  <p>P.S. Here's another way I've used to obtain the MNIST dataset:</p>
  
  <pre><code>dataset = fetch_mldata('MNIST original')
  </code></pre>