-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PR: Enable sorting by values in Variable Explorer #5295
PR: Enable sorting by values in Variable Explorer #5295
Conversation
Hello @Prikers! Thanks for updating the PR.
Comment last updated on September 23, 2017 at 12:51 Hours UTC |
Hi @Prikers thanks for working on this :-) |
Maybe I should have done that against 3.x though 😞 |
You can fix it if that is the case (no need to close this PR), no worries, lets check with @ccordoba12 to see what he thinks? |
@Prikers, please read our Contributing guide to see how to move your branch to 3.x: https://github.com/spyder-ide/spyder/blob/master/CONTRIBUTING.md |
@ccordoba12 ok, will do! |
@Prikers, rebasing against the latest |
@Prikers, what would happen now if, as part of a list or a dict, there's a Numpy array or a Dataframe? I mean, in that case sorting should be disabled, right? |
@ccordoba12 nothing happens when trying to sort objects that cannot be ordered. Here are some tests: import pandas as pd
import numpy as np
df = pd.DataFrame({'A': [1, 2, 3], 'B': [3, 2, 1]})
arr = np.random.random((10, 10))
normal_list = [1, 4, 5, 8, 9, 1, 3, 2]
obj_list = [df, arr, 4, 5, 'A']
serie = df.A
obj_dict = {'df': df, 'arr': arr, 'int': 1, 'str': 'A'}
normal_dict = {'A': 1, 'B': 2, 'C': 4, 'D': 3}
mixt_dict = {'A': '1', 'B': 2, 'C': 4, 'D': 3}
|
Yes, it is. I just wanted to know if your changes are not introducing an error in that case. |
@Prikers please check gitter :-) |
e15c654
to
e1648dc
Compare
b94f8e3
to
010986b
Compare
I am sorry guys, I will need your help once again. I had rebased this branch to 3.x and it worked. But then I pushed two more commits ( |
Maybe the issue is that (perhaps in addition to |
Thanks @jitseniesen! I tried to close the PR and open it again but it does not seem to force the rebuild of continuous integration tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks @Prikers!
Fixes #5294
Fixes #5232