Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ from math import ceil
|
|
14 |
def split_frame(input_df, rows):
|
15 |
df=[]
|
16 |
for i in range(0, len(input_df), rows):
|
17 |
-
df.append
|
18 |
return df
|
19 |
|
20 |
def paginar_frame(df):
|
@@ -183,8 +183,6 @@ def main():
|
|
183 |
pagina_res_fin= batch_size*current_page if batch_size*current_page <= cantidad_respuestas else cantidad_respuestas
|
184 |
st.markdown(f"Respuestas **{(current_page*batch_size)-batch_size+1}-{pagina_res_fin}** de **{cantidad_respuestas}** ")
|
185 |
|
186 |
-
|
187 |
-
|
188 |
paginar_frame(pages[current_page - 1])
|
189 |
|
190 |
|
|
|
14 |
def split_frame(input_df, rows):
|
15 |
df=[]
|
16 |
for i in range(0, len(input_df), rows):
|
17 |
+
df.append(input_df.iloc[i : i + rows, :])
|
18 |
return df
|
19 |
|
20 |
def paginar_frame(df):
|
|
|
183 |
pagina_res_fin= batch_size*current_page if batch_size*current_page <= cantidad_respuestas else cantidad_respuestas
|
184 |
st.markdown(f"Respuestas **{(current_page*batch_size)-batch_size+1}-{pagina_res_fin}** de **{cantidad_respuestas}** ")
|
185 |
|
|
|
|
|
186 |
paginar_frame(pages[current_page - 1])
|
187 |
|
188 |
|