Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
+
|