for file in files: try: df = pd.read_csv("/Users/georgezambrano/Desktop/Code/Sales_Data/"+file) except: continue
This, way you can work around the .DS_Store without deleting it.