ashcodes commited on
Commit
a343b00
1 Parent(s): a5a6fbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -54,6 +54,7 @@ if input_pdf is not None:
54
  table = camelot.read_pdf('input.pdf', flavor='stream',split_text = True,layout_kwargs={'detect_vertical':True},backend='poppler')
55
  df = table[0].df
56
  #df = df.dropna(axis=1, thresh=int(len(df)*0.7),inplace=True)
 
57
  for i in df.index:
58
  if df['Alerted'][i]=='o':
59
  df['Alerted'][i]='NO'
 
54
  table = camelot.read_pdf('input.pdf', flavor='stream',split_text = True,layout_kwargs={'detect_vertical':True},backend='poppler')
55
  df = table[0].df
56
  #df = df.dropna(axis=1, thresh=int(len(df)*0.7),inplace=True)
57
+ df = pd.DataFrame(df)
58
  for i in df.index:
59
  if df['Alerted'][i]=='o':
60
  df['Alerted'][i]='NO'