-
Notifications
You must be signed in to change notification settings - Fork 700
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
Accept Pandas Series in lov property #1447
Accept Pandas Series in lov property #1447
Conversation
This issue is, in fact, still being discussed with the R&D. We will get back to you when the R&D agrees |
Got it. Is it better to close this or fine to keep this as is? @FlorianJacta |
Let's keep it for the moment |
39be3cd
to
faac65e
Compare
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.
simple and efficient
Could you update your branch ?
faac65e
to
0a767c6
Compare
It's updated but the test I wrote fails for some reason. Can you have a look at it? |
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.
you also need to manage the type in builder.py (for the default value) in def __get_list_of()
I would recommend a generic approach
if not isinstance(lof, list) and hasattr(lof, "tolist"):
try:
return lof.tolist() #type: ignore[union-attr]
except Exception as e:
_warn("Error accessing List of values", e)
If you update your branch and resolve the conversations, I think we can merge this branch. |
b38d284
to
791d516
Compare
@FredLL-Avaiga Resolved conversations and updated the branch. |
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.
I'd like @FabienLelaquais and @dinhlongviolin1 to take a look
On it, @FredLL-Avaiga |
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.
This is really simple and clear.
I added a comment just in case. Do it or not. Let me know.
No problem to approve+merge then.
51e9d0e
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.
👌
Thank you @Satoshi-Sh |
Thanks for your help, Fred 🚀 |
Related Issue
Fixes #1444
Updates
_adapter.py
test_selector.py
Comments
I made a new test case for pd.Series but it doesn't pass. Can you have a look at it?