Skip to content

Commit

Permalink
Update clean_csv.py
Browse files Browse the repository at this point in the history
fix the try/except loop in importing datacleaner (fix test suite in docker).
  • Loading branch information
jim-schwoebel authored Aug 12, 2020
1 parent 9d7e859 commit 1517009
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cleaning/csv_cleaning/clean_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import datacleaner
except:
os.system('pip3 install datacleaner==0.1.5')
import datacleaner

def clean_csv(csvfile, basedir):
'''
Expand All @@ -49,4 +50,4 @@ def clean_csv(csvfile, basedir):
newframe=datacleaner.autoclean(input_dataframe, drop_nans=False, copy=False, ignore_update_check=False)
newfile='clean_'+csvfile
newframe.to_csv(newfile, index=False)
return [newfile]
return [newfile]

0 comments on commit 1517009

Please sign in to comment.