Spaces:
Runtime error
Runtime error
Commit
·
047f2f7
1
Parent(s):
6cd26ad
Update app.py
Browse files
app.py
CHANGED
@@ -139,9 +139,9 @@ def analizar_tweets(search_words, number_of_tweets ):
|
|
139 |
df['Tweets'] = df['Tweets'].str.replace('RT|@', '')
|
140 |
#df['Tweets'] = df['Tweets'].apply(lambda x: re.sub(r'[:;][-o^]?[)\]DpP3]|[(/\\]|[\U0001f600-\U0001f64f]|[\U0001f300-\U0001f5ff]|[\U0001f680-\U0001f6ff]|[\U0001f1e0-\U0001f1ff]','', x))
|
141 |
|
142 |
-
|
143 |
|
144 |
-
return
|
145 |
|
146 |
def analizar_frase(frase):
|
147 |
#palabra = frase.split()
|
|
|
139 |
df['Tweets'] = df['Tweets'].str.replace('RT|@', '')
|
140 |
#df['Tweets'] = df['Tweets'].apply(lambda x: re.sub(r'[:;][-o^]?[)\]DpP3]|[(/\\]|[\U0001f600-\U0001f64f]|[\U0001f300-\U0001f5ff]|[\U0001f680-\U0001f6ff]|[\U0001f1e0-\U0001f1ff]','', x))
|
141 |
|
142 |
+
tabla = st.table(df.reset_index(drop=True).head(20).style.applymap(color_survived, subset=['Sexista']))
|
143 |
|
144 |
+
return tabla
|
145 |
|
146 |
def analizar_frase(frase):
|
147 |
#palabra = frase.split()
|