Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite computation of max and min in dataframe editor #3353

Merged
merged 5 commits into from
Aug 17, 2016

Conversation

jitseniesen
Copy link
Member

The main goal for this PR is to fix an unhandled exception in update_min_max_col() in the dataframe editor, which is triggered by dataframes with either categorical data or with timezone-aware timestamps.

I ended up completely rewriting the function so that it only compute the max and min of columns where the results are actually used (in order to set the background colour), because there were some details of the old implementation that I did not quite understand (handling of complex numbers). I also added tests, expanded the docstring, and did some clean-up in related routines.

Fixes #2940 and #3308.

@jitseniesen jitseniesen reopened this Aug 15, 2016
@ccordoba12 ccordoba12 added this to the v3.0beta5 milestone Aug 16, 2016
@ccordoba12
Copy link
Member

@jitseniesen, this is a terrific job!! Thanks a lot for it! :-)

I especially liked your new max_min_col_update method (it's so much clearer now!) and your tests, which are very well written.

Since everything is green, there's only one thing for me to do: press the Merge button ;-)

@ccordoba12 ccordoba12 merged commit 4a74af1 into spyder-ide:master Aug 17, 2016
@goanpeca
Copy link
Member

Indeed, great addition :-) 👍

@jitseniesen jitseniesen deleted the dataframa-maxmin branch August 17, 2016 12:06
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.

Variable explorer can't show Pandas objects containing timezone aware columns
3 participants