Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Series StringMethods very slow #2602
Comments
wesm
closed this
in 016b320
Dec 28, 2012
|
Thanks for pointing this out. I changed the impl and am getting ~282ms now vs. 1.76s originally on your example. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jim22k commentedDec 27, 2012
I understand the benefit of Series.str methods which automatically handle NA, but the implementation seems really slow.
Looking in the code the difference seems to be that Series.map with na_action='ignore' uses some vectorized code to filter out the NA values while Series.str uses the _na_map function with a try/except for each item in the Series (non-vectorized).
Can I make a request to eliminate the _na_map in favor of something more like Series.map(na_action='ignore')?