Spaces:
Runtime error
Runtime error
Fixed Related to logic
Browse files
app.py
CHANGED
@@ -465,7 +465,8 @@ if st.session_state['parsed']:
|
|
465 |
'LOC':'Non Political Location'})
|
466 |
|
467 |
# Replace name with zeroth element of related to
|
468 |
-
|
|
|
469 |
|
470 |
gb = GridOptionsBuilder.from_dataframe(df_to_st)
|
471 |
gb.configure_pagination(paginationAutoPageSize=True) #Add pagination
|
|
|
465 |
'LOC':'Non Political Location'})
|
466 |
|
467 |
# Replace name with zeroth element of related to
|
468 |
+
if df_to_st['Related to'].any():
|
469 |
+
df_to_st['Name'] = df_to_st['Related to'].apply(lambda x : x[0])
|
470 |
|
471 |
gb = GridOptionsBuilder.from_dataframe(df_to_st)
|
472 |
gb.configure_pagination(paginationAutoPageSize=True) #Add pagination
|