Skip to content

Commit

Permalink
Update read.py
Browse files Browse the repository at this point in the history
  • Loading branch information
medewitt authored Feb 11, 2025
1 parent 03ffc2a commit 35b85be
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions read.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ def read_table(x):
dir_list = os.listdir('data')

for file in dir_list:
df = read_table(os.path.join('data', file))
print(df.columns)
try:
df = read_table(os.path.join('data', file))
print(df.columns)
except TypeError:
pass

if df.columns.isin(['wwtp_name']).any():
file_time = datetime.datetime.now().strftime("%Y-%m-%d_")
Expand All @@ -32,4 +35,4 @@ def read_table(x):
print("Not it.")




0 comments on commit 35b85be

Please sign in to comment.