umang018 commited on
Commit
e351de9
·
verified ·
1 Parent(s): 1a76033

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,10 +1,11 @@
1
  import streamlit as st
2
  import pandas as pd
 
3
 
4
  # Load the CSV data
5
  @st.cache_data
6
  def load_data(file_path):
7
- df = pd.read_csv(file_path, delimiter=',', quotechar='"', on_bad_lines='skip')
8
  return df
9
 
10
  # Paginate function
@@ -52,3 +53,4 @@ def main():
52
 
53
  if __name__ == "__main__":
54
  main()
 
 
1
  import streamlit as st
2
  import pandas as pd
3
+ import csv
4
 
5
  # Load the CSV data
6
  @st.cache_data
7
  def load_data(file_path):
8
+ df = pd.read_csv(file_path, delimiter=',', quotechar='"', quoting=csv.QUOTE_MINIMAL, on_bad_lines='skip')
9
  return df
10
 
11
  # Paginate function
 
53
 
54
  if __name__ == "__main__":
55
  main()
56
+