Skip to content

Conversation

@BertrandBordage
Copy link
Contributor

This fixes an issue I was struggling with: sometimes the pk list is a series of floats (when there are NaN values), and sometimes it's just a series of int. If it's a series of int, checking whether a pk is NaN raises a TypeError.

After digging, I figured that would be easier to use pandas Series to handle all this. I made a lot of timeits to find the fastest algorithm I could do without having to use Cython.
It shouldn't be faster however, just as fast as before (when it was buggy).

@chrisdev
Copy link
Owner

@BertrandBordage Looks like we're having problems with Python 3

@BertrandBordage
Copy link
Contributor Author

Oops… this should be fixed now.

chrisdev added a commit that referenced this pull request May 27, 2014
Fixes the issue of handling NaN/None by using pandas Series in an optimized way.
@chrisdev chrisdev merged commit 44ba4a1 into chrisdev:master May 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants