Update pages/chapter_index.py
Browse files- pages/chapter_index.py +4 -1
pages/chapter_index.py
CHANGED
@@ -14,7 +14,10 @@ endrowindex_list = df_chapters["to_row_index"].tolist()
|
|
14 |
st.write("START num:", startrowindex_list)
|
15 |
st.write("END num:", endrowindex_list)
|
16 |
#df_chapters["range_of_rows"] = range((s for s in startrowindex_list), (e for e in endrowindex_list))
|
17 |
-
df_chapters['range_of_rows'] = df_chapters.apply(lambda row: list(range((s for s in startrowindex_list), (e for e in endrowindex_list)), axis=1))
|
|
|
|
|
|
|
18 |
|
19 |
def dataframe_with_selections(df_chapters: pd.DataFrame, init_value: bool = False) -> pd.DataFrame:
|
20 |
df_with_selections = df_chapters.copy()
|
|
|
14 |
st.write("START num:", startrowindex_list)
|
15 |
st.write("END num:", endrowindex_list)
|
16 |
#df_chapters["range_of_rows"] = range((s for s in startrowindex_list), (e for e in endrowindex_list))
|
17 |
+
#df_chapters['range_of_rows'] = df_chapters.apply(lambda row: list(range((s for s in startrowindex_list), (e for e in endrowindex_list)), axis=1))
|
18 |
+
for s, e in (startrowindex_list, endrowindex_list):
|
19 |
+
df_chapters['range_of_rows'] = df_chapters.apply(lambda row: list(range(s,e), axis=1))
|
20 |
+
|
21 |
|
22 |
def dataframe_with_selections(df_chapters: pd.DataFrame, init_value: bool = False) -> pd.DataFrame:
|
23 |
df_with_selections = df_chapters.copy()
|