title: Why do I get "index 0 is out of bounds for axis 0 with size 0" for a large dataset but not for a small dataset?
body: <p><a href="https://i.stack.imgur.com/LE7jd.png" rel="nofollow noreferrer">enter image description here</a></p>
  <pre class="lang-none prettyprint-override"><code>&lt;ipython-input-46-4dc0f8b3e097&gt; in number_of_real_and_fake_videos(data_list)
        8   for i in data_list:
        9     temp_video = i.split('/')[-1]
  ---&gt; 10     label = lab.iloc[(labels.loc[labels[&quot;file&quot;] == temp_video].index.values[0]),1]
       11     if(label == 'FAKE'):
       12       fake+=1
  
  IndexError: index 0 is out of bounds for axis 0 with size 0
  </code></pre>
  <p>I am getting this error but when I use small dataset it will give output but for a large dataset it will show an index error.</p>