1
vote
Accepted
How to vectorize and speed-up double for-loop for pandas dataframe when doing text similarity scoring
The basic problem here is that Pandas is very slow compared to NumPy in many operations like indexing.
I rewrote this part of code:
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
pandas × 1343python × 868
dataframe × 243
machine-learning × 173
scikit-learn × 145
data-cleaning × 128
numpy × 105
dataset × 78
time-series × 54
matplotlib × 46
data × 44
python-3.x × 44
visualization × 36
preprocessing × 36
csv × 32
data-mining × 29
jupyter × 25
correlation × 24
data-analysis × 24
classification × 22
regression × 22
data-science-model × 22
groupby × 22
statistics × 21
nlp × 19