-
-
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: Add edition menu and toolbar to dataframe viewer #20546
Conversation
Hey @dpturibio, thanks a lot for your contribution! Quick review according to the screenshot you posted above:
|
Thank you for your inputs @ccordoba12 . Bellow a screenshot of the new menu layout. Please, let me know if you think any further change is necessary. |
That looks really nice! Thanks @dpturibio for your hard work on this! I don't have additional comments about the context menu's new UI. I'll try to review your code in the following days. |
Hello @ccordoba12. Just to let you know, I was doing some tests with this new implementation and found some untreated errors when duplicating rows with numerical indexes(before I had just tested strings). But for some reason, some tests for test_ipythonconsole.py started failing with timeout(as you can see in above commits). I tried to increase time to prevent it but unsuccessful. I do not think this is related to the changes I did, but anyway, I will wait for your inputs when you can review the code. Thank you, |
Hi @ccordoba12, how are you doing? Hope everything is ok. Just pinging you to put in queue this PR ok. |
resolve conflicts
@ccordoba12, @dpturibio is part of our team here, could you take a look on this PR? Also, is it possible to add it to the next release of v5? Our project uses this editor and we are currently patching Spyder code to add it. Thanks :) |
@dpturibio and @dpizetta, after making the changes I mentioned, I was reviewing this manually and found that it's failing to add/remove rows and columns in some simple cases For instance:
So I think this needs more work and also effort because I'd like to see tests for the new functionality added here. Given that, I think it's better to leave it for Spyder 6 (which will be released before the end of the year) to not introduce changes that will force us to put more time into maintaining Spyder 5. What do you think? |
- Add several strings for translation. - Fix layout margins.
@ccordoba12 thanks for your feedback on this. It seems fair. @dpturibio is fixing the problems you mentioned, but tests are nice to keep everything under control. |
Hello @dpturibio! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2023-11-07 20:53:42 UTC |
Some usability comments:
|
Some usability comments:
|
Hello @ccordoba12 and @dpizetta, I finished the changes in dataframe editor as proposed by Daniel in the linked message. I created also the automated tests in test_dataframeeditor.py. |
Also, fix error while doing that and improve code style a bit.
@dpturibio, thanks for all your hard work here! I just pushed two commits to your branch: one to simplify the new test you added (thanks a lot for it!) and the other with code style improvements for your new code. And I have two final comments that I'd like to see addressed before merging:
After fix those things, this one should be ready for me. |
Hello @ccordoba12, thank you for your revision. It wasn't duplicating correctly indexes with more than on item before this commit. |
Thanks! I tested it locally and it's working as expected.
Ok, thanks for the clarification. Then I'd say this is ready. @dpizetta, do you have additional comments? If I don't hear from you in a couple of days, I'll merge. |
@ccordoba12 and @dpturibio it seems great to me. Thanks for both of you |
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.
Fantastic contribution @dpturibio!! Thanks a lot for it!
Thank you Cordoba. It was an amazing experience. Hope to continue contributing with Spyder's community soon. |
Description of Changes
Creation of a toolbar and menu for edition of Dataframes:
New features: edit cell/header/index, duplicate row/column, insert a row/column after/before/above/bellow the selected one, remove row/column, and resize as you can see in screenshot.
Attempts of creating duplicated header/index names are treated and a suffix "_copy(n)", with n=0,1,2,... is concatenated in header/index name.
Issue(s) Resolved
Fixes spyder-ide/ux-improvements#76
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.
I certify the above statement is true and correct:
@dpturibio / Diego Prosperi Turibio