title: TypeError: unhashable type: 'list' when calling .iloc()
body: <p>I'm currently doing some AI research for a project and for that I have to get used to a framework called "Pytorch". That's fine and all but following the official tutorial (found <a href="https://pytorch.org/tutorials/beginner/data_loading_tutorial.html" rel="nofollow noreferrer">here</a>) the code doesn't run properly.</p>
  
  <p>The idea is that I analyse a set of facial features from a prepared dataset and then do something with it (haven't gotten to that part yet). But when I run this piece of code:</p>
  
  <pre><code>img_name = os.path.join(self.root_dir, self.landmarks_frame.iloc([index, 0]))  # At this point 'index' is 0
  </code></pre>
  
  <p>The dataset is initialized like this:</p>
  
  <pre><code>face_dataset = fDataset(csv_file='faces/face_landmarks.csv', root_dir='faces/')
  </code></pre>
  
  <p>And here is where the error pops up:</p>
  
  <pre><code>for i in range(len(face_dataset)):
      sample = face_dataset[i]  # &lt;-- right there
  </code></pre>
  
  <p>That leads to the getter function:</p>
  
  <pre><code>def __getitem__(self, index):
      img_name = os.path.join(self.root_dir, self.landmarks_frame.iloc([index, 0]))
      image = io.imread(img_name)
      landmarks = self.landmarks_frame.iloc[index, 1:].as_matrix()
      landmarks = landmarks.astype('float').reshape(-1, 2)
      sample = {'image': image, 'landmarks': landmarks}
  </code></pre>
  
  <p>Found in my <code>FaceLandmarksDataset(Dataset):</code> class I simply get the error of the title. This is strange I find, because I can read the dataset just fine as a frame in PyCharm:
  <a href="https://i.stack.imgur.com/oMU4C.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oMU4C.png" alt="Dataset Inspector"></a></p>
  
  <p>Where the first picture is clearly visible. I have checked as well that it is in the folder that I'm looking in.</p>
  
  <p>Can anyone help out? :)</p>