Lisibonny commited on
Commit
7ea632a
1 Parent(s): 275fc67

Update resultados_consulta.py

Browse files
Files changed (1) hide show
  1. resultados_consulta.py +1 -1
resultados_consulta.py CHANGED
@@ -81,6 +81,6 @@ def detalles_resultados(df,indices):
81
  top=df.loc[indices]
82
  top['resumen']=top['resumen'].apply(lambda x: remove_html_markup(x))
83
  top['resumen']=top['resumen'].apply(lambda x: remove_URL(x))
84
- top['resumen']=top['resumen'].apply(lambda x: x[0:600] if len(x)>600 else x)
85
  top=top.loc[:,['titulo', 'link', 'fecha', 'resumen', 'seccion', 'feed']]
86
  return top
 
81
  top=df.loc[indices]
82
  top['resumen']=top['resumen'].apply(lambda x: remove_html_markup(x))
83
  top['resumen']=top['resumen'].apply(lambda x: remove_URL(x))
84
+ top['resumen']=top['resumen'].apply(lambda x: x[0:600] + '[...]' if len(x)>600 else x)
85
  top=top.loc[:,['titulo', 'link', 'fecha', 'resumen', 'seccion', 'feed']]
86
  return top