title: How to skip entire file when iterating through folder?
body: <p>I have a file path with many files in it. </p>
  
  <p>Some of the files dont have the data I want in them, how do I skip over these files and move on to the next set of files? </p>
  
  <pre><code>path ='/path/' # use your path
  allFiles = glob.glob(path + "/*.json")
  for file_ in allFiles:
      #print(file_)
      with open(file_) as f:
          data = json.load(f)
          df = json_normalize(data['col_to_be_flattened']) 
          REST OF THE OPERATIONS
  </code></pre>
  
  <p>once the data is in the dataframe at the point <code>df</code>, the <code>REST OF THE OPERATIONS</code> relies on a column called 'Rows.Row', if this column does not exist in <code>df</code> I want to skip it. How do I do this? </p>