Spaces:
Running
Running
Update pages/9 WordCloud.py
Browse files- pages/9 WordCloud.py +1 -1
pages/9 WordCloud.py
CHANGED
|
@@ -239,7 +239,7 @@ if uploaded_file is not None:
|
|
| 239 |
elif extype.endswith(('.xls', '.xlsx')):
|
| 240 |
texts = readxls(uploaded_file)
|
| 241 |
colcho = c1.selectbox("Choose Column", list(texts))
|
| 242 |
-
fullcolumn = " ".join(list(texts[colcho]))
|
| 243 |
tokenized = word_tokenize(fullcolumn)
|
| 244 |
filtered = [word for word in tokenized if word.lower() not in stopwords.words('english')]
|
| 245 |
fullcolumn = ' '.join(filtered)
|
|
|
|
| 239 |
elif extype.endswith(('.xls', '.xlsx')):
|
| 240 |
texts = readxls(uploaded_file)
|
| 241 |
colcho = c1.selectbox("Choose Column", list(texts))
|
| 242 |
+
fullcolumn = " ".join(pd.Series(list(texts[colcho])).dropna().astype(str))
|
| 243 |
tokenized = word_tokenize(fullcolumn)
|
| 244 |
filtered = [word for word in tokenized if word.lower() not in stopwords.words('english')]
|
| 245 |
fullcolumn = ' '.join(filtered)
|