Skip to content

Commit a769d37

Browse files
committed
Remove streamlit as dependency
1 parent 8226f5d commit a769d37

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

cpm/reporting/streamlit_utils.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import os
22
import pandas as pd
3-
import streamlit as st
43

54

65
def style_apa(df):
@@ -50,23 +49,4 @@ def style_apa(df):
5049
}
5150
]).format(precision=3)
5251

53-
return styled_df
54-
55-
56-
# Function to read CSV file from the given folder path
57-
def load_data_from_folder(folder_path, filename):
58-
csv_path = os.path.join(folder_path, filename)
59-
if os.path.exists(csv_path):
60-
return pd.read_csv(csv_path)
61-
else:
62-
st.error(f"No CSV file found at path: {csv_path}")
63-
return None
64-
65-
66-
def load_results_from_folder(folder_path, filename):
67-
csv_path = os.path.join(folder_path, filename)
68-
if os.path.exists(csv_path):
69-
return pd.read_csv(csv_path, header=[0, 1], index_col=[0, 1])
70-
else:
71-
st.error(f"No CSV file found at path: {csv_path}")
72-
return None
52+
return styled_df

0 commit comments

Comments
 (0)