-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
Fix usage of column_names
which is part of Interchange protocol
#4442
Conversation
Signed-off-by: Anatoly Myachev <[email protected]>
Hi @MarcoGorelli! Could you take a look? |
looks fine |
@MarcoGorelli thanks for the feedback! |
Hi @alexcjohnson! I'm not sure if it's necessary to add tests here, do you think it's worth adding? The change looks safe enough. For example, I could add a synthetic test where the generator from this function will be returned instead of list. plotly.py/packages/python/plotly/plotly/tests/test_optional/test_px/test_px_input.py Line 261 in 63b9ac5
|
I see, so in principle If so, then yes, I think your proposed test would be great. Given that this PR is fixing a case we hadn't previously covered it definitely wants a test one way or another, that would have failed without this change. After that the only other thing we'll want is a changelog entry. Thanks for the PR! |
Yes, you are right. Thanks for the quick response!
I added a test and a log entry. |
Signed-off-by: Anatoly Myachev <[email protected]>
d001a09
to
4403972
Compare
Signed-off-by: Anatoly Myachev <[email protected]>
@@ -14,12 +14,12 @@ | |||
@pytest.fixture | |||
def add_interchange_module_for_old_pandas(): | |||
if not hasattr(pd.api, "interchange"): | |||
pd.api.interchange = mock.MagicMock() |
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 change is necessary so that this attribute is not saved between runs.
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.
💃 Very nicely done @anmyachev - thanks again!
Code PR
plotly.graph_objects
, my modifications concern thecodegen
files and not generated files.modified existing tests.
new tutorial notebook (please see the doc checklist as well).