Nalla commited on
Commit
4ca5a01
·
1 Parent(s): 5a776b4

Update App_For_PDF_To_Dataframe.py

Browse files
Files changed (1) hide show
  1. App_For_PDF_To_Dataframe.py +1 -1
App_For_PDF_To_Dataframe.py CHANGED
@@ -75,7 +75,7 @@ if input_pdf is not None:
75
  @st.cache
76
  def convert_df(df):
77
  # IMPORTANT: Cache the conversion to prevent computation on every rerun
78
- return df.to_csv().encode('utf-8').index(False)
79
 
80
  csv = convert_df(table[int(option)-1].df)
81
 
 
75
  @st.cache
76
  def convert_df(df):
77
  # IMPORTANT: Cache the conversion to prevent computation on every rerun
78
+ return df.to_csv(index=False).encode('utf-8')
79
 
80
  csv = convert_df(table[int(option)-1].df)
81