Last active
September 20, 2019 14:33
-
-
Save rlopez0689/1d3f13837d1a05e060004d179ee46fb5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gracias brother