Skip to content

Instantly share code, notes, and snippets.

@rlopez0689
Last active September 20, 2019 14:33
Show Gist options
  • Save rlopez0689/1d3f13837d1a05e060004d179ee46fb5 to your computer and use it in GitHub Desktop.
Save rlopez0689/1d3f13837d1a05e060004d179ee46fb5 to your computer and use it in GitHub Desktop.
import os
csv_directory = "CSVs"
signals_search = ["temperatura", "otracosa"]
missing_signals_file = {}
for csv_file in os.listdir(csv_directory):
with open("{}/{}".format(csv_directory, csv_file)) as file_csv:
header = file_csv.readline()
missing_signals_file[csv_file] = [signal for signal in signals_search if signal not in header]
for key, value in missing_signals_file.items():
print (key, value)
@JerryMuc
Copy link

Gracias brother

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment