Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -157,11 +157,15 @@ st.header(f'HeroPlan Explorer')
|
|
| 157 |
st.write('Powered by Heroplan.io : Thanks E&P community for continually update hero data.')
|
| 158 |
|
| 159 |
df = pd.read_csv('heroes_ep.csv')
|
|
|
|
|
|
|
|
|
|
|
|
|
| 160 |
class_values = ['None'] + list(df['class'].unique())
|
| 161 |
star_values = ['None'] + list(df['star'].unique())
|
| 162 |
color_values = ['None'] + list(df['color'].unique())
|
| 163 |
speed_values = ['None'] + list(df['speed'].unique())
|
| 164 |
-
source_values = ['None'] + list(df['source'].unique())
|
| 165 |
|
| 166 |
#########################################
|
| 167 |
## Select Main Program
|
|
@@ -246,7 +250,6 @@ if genre == ':rainbow[Heroes Explorer]':
|
|
| 246 |
idx_all.append(filter_by_1col(df, 'effects', special_text_option, exact_flag=False))
|
| 247 |
|
| 248 |
#########################################
|
| 249 |
-
st.write(f'### Updated: Oct 23, 2023 -- Total heroes in HeroPlan database = {len(df)}')
|
| 250 |
|
| 251 |
df2 = df[np.all(idx_all,axis=0)]
|
| 252 |
|
|
|
|
| 157 |
st.write('Powered by Heroplan.io : Thanks E&P community for continually update hero data.')
|
| 158 |
|
| 159 |
df = pd.read_csv('heroes_ep.csv')
|
| 160 |
+
st.write(f'### Updated: Oct 23, 2023 -- Total heroes in HeroPlan database = {len(df)}')
|
| 161 |
+
|
| 162 |
+
#########################################
|
| 163 |
+
|
| 164 |
class_values = ['None'] + list(df['class'].unique())
|
| 165 |
star_values = ['None'] + list(df['star'].unique())
|
| 166 |
color_values = ['None'] + list(df['color'].unique())
|
| 167 |
speed_values = ['None'] + list(df['speed'].unique())
|
| 168 |
+
source_values = ['None'] + list(df['source'].unique()) # Contain lot of typo bugs from HeroPlan
|
| 169 |
|
| 170 |
#########################################
|
| 171 |
## Select Main Program
|
|
|
|
| 250 |
idx_all.append(filter_by_1col(df, 'effects', special_text_option, exact_flag=False))
|
| 251 |
|
| 252 |
#########################################
|
|
|
|
| 253 |
|
| 254 |
df2 = df[np.all(idx_all,axis=0)]
|
| 255 |
|