title: BatchDataset not subscriptable when trying to format Python dictionary as table
body: <p>I'm working through the <a href="https://www.tensorflow.org/tutorials/load_data/pandas_dataframe" rel="nofollow noreferrer">TensorFlow Load pandas.DataFrame tutorial</a>, and I'm trying to modify the output from a code snippet that creates the dictionary slices:</p>
  
  <pre><code>dict_slices = tf.data.Dataset.from_tensor_slices((df.to_dict('list'), target.values)).batch(16)
  
  for dict_slice in dict_slices.take(1):
       print (dict_slice)
  </code></pre>
  
  <p>I find the following output sloppy, and I want to put it into a more readable table format.</p>
  
  <p><a href="https://i.stack.imgur.com/Amaxl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Amaxl.png" alt="Dictionary output from TensorFlow Tutorial"></a></p>
  
  <p>I tried to format the for loop, based on <a href="https://stackoverflow.com/questions/29265002/print-a-dictionary-into-a-table/29265065">this recommendation</a>
  <a href="https://i.stack.imgur.com/CRh1A.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CRh1A.png" alt="Trying a basic for loop"></a></p>
  
  <p>Which gave me the error that the BatchDataset was not subscriptable</p>
  
  <p><a href="https://i.stack.imgur.com/rqmCX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rqmCX.png" alt="Error messages from for loop modification"></a></p>
  
  <p>Then I tried to use the range and leng function on the dict_slices, so that i would be an integer index and not a slice
  <a href="https://i.stack.imgur.com/J3Ibe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J3Ibe.png" alt="Modifying dict_slices with range and len"></a></p>
  
  <p>Which gave me the following error (as I understand, because the dict_slices is still an array, and each iteration is one vector of the array, not one index of the vector):</p>
  
  <p><a href="https://i.stack.imgur.com/OG4LW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OG4LW.png" alt="enter image description here"></a></p>