Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/23690
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (4 Unrelated Failures)As of commit 6c65de0 with merge base b1beef3 ( BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot label "release notes: devtools" |
|
@u7k4rs6 could you update branch and ping for review? |
|
thanks @nil-is-all, updated the branch. @Gasoonjia could you take a look when you get a chance? small one, applymap -> map for pandas 3. |
|
@claude review this PR |
|
Claude finished @nil-is-all's task in 2m 26s —— View job The fix is correct and fine to merge; the new test has a few minor robustness gaps, none of them blocking. Detailed reviewPR Review: #23690SummaryThis PR switches Code Quality
Infrastructure
Testing
RecommendationApprove Nothing blocks the merge. The test improvements and the deps check are suggestions. The bare-except cleanup can be a follow-up. Notes on this review: the reviewers could not run the test because Python execution was not permitted, so all findings come from reading the code. |
|
Claude finished @nil-is-all's task in 1m 55s —— View job Summary: The Detailed reviewPR Review: #23690SummaryThe PR switches Testing
Code Quality
RecommendationApprove: nothing above blocks the merge. I didn't run the new test here because the sandbox wouldn't allow running Python, so this review is based on reading the code. |
|
@u7k4rs6 I'm running some AI-assisted reviews on your CUDA & devtools PRs. @Gasoonjia will be back on Nov 2 and will be able to provide additional reviews & approvals |
Summary
display_or_print_dfstyles the dataframe withdf.style.applymap(...).Styler.applymapwas deprecated in pandas 2.1 and removed in pandas 3.0, so with pandas 3 that line raises an AttributeError. The bareexceptaround it swallows the error and falls back to the plain-text tabulate print, so in a notebookprint_data_tabular()silently stops showing the styled table, no error anywhere.The fix is just
applymap->map.Styler.mapexists since pandas 2.1 and the repo already needs pandas>=2.2.2, so nothing else changes.Test plan
Added test_display_or_print_df_in_ipython in devtools/inspector/tests/inspector_utils_test.py. It fakes the IPython modules, turns FutureWarning into an error (so it also catches the deprecated call on pandas 2.x), and checks the styled table goes to display() and nothing is printed. It fails on main and passes with the fix on pandas 3.0.6, and the rest of inspector_utils_test.py passes (93 tests). ufmt and flake8 are clean with the versions in requirements-lintrunner.txt.
cc @Gasoonjia @nil-is-all