Fix usage of column_names which is part of Interchange protocol#4442
Fix usage of column_names which is part of Interchange protocol#4442alexcjohnson merged 3 commits intoplotly:masterfrom
column_names which is part of Interchange protocol#4442Conversation
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
|
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. |
|
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 <anatoly.myachev@intel.com>
d001a09 to
4403972
Compare
| @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.
This change is necessary so that this attribute is not saved between runs.
alexcjohnson
left a comment
There was a problem hiding this comment.
💃 Very nicely done @anmyachev - thanks again!
Code PR
plotly.graph_objects, my modifications concern thecodegenfiles and not generated files.modified existing tests.
new tutorial notebook (please see the doc checklist as well).