docs: add Triangle loc/iloc/at/iat examples (#704) - #1208
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
Pyright Type CompletenessView the full Project (full
Other symbols referenced but not exported by
Symbols without documentation:
Patch (exported symbols added or changed by this PR): no exported symbol type-completeness changes detected. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1208 +/- ##
==========================================
+ Coverage 91.25% 91.28% +0.02%
==========================================
Files 91 91
Lines 5400 5413 +13
Branches 691 692 +1
==========================================
+ Hits 4928 4941 +13
Misses 338 338
Partials 134 134
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@genedan there's some restructuring here on slice. could you please review? |
… autosummary template. The ruff workflow lints touched files with per-file ignores cleared. The template now unions the documented Triangle attrs and arithmetic dunders so casact#1208, casact#1212, and casact#1213 do not clobber each other on merge. Co-authored-by: Cursor <cursoragent@cursor.com>
The last merge of casact#1208/casact#1211/casact#1212/casact#1213 would otherwise wipe documented indexers, shape attrs, or arithmetic dunders. Co-authored-by: Cursor <cursoragent@cursor.com>
Named doctest groups keep loc/iloc/at/iat from picking up another Triangle page `tri`. triangle.py gets the same E721/E731/F401/F841/E712 cleanup CI requires once the file is touched. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Merged Ruff: this PR touches Doctest: loc/iloc/at/iat were in the default group and reused |
* docs: add Triangle shape/empty/compute doctest examples (#704) Co-authored-by: Cursor <cursoragent@cursor.com> * Tighten TriangleBase examples from review on nan_triangle, get_array_module, and compute. Print the nan mask as-is, show numpy/sparse module identity, and document compute with a dask code sample instead of a numpy no-op doctest. Co-authored-by: Cursor <cursoragent@cursor.com> * Fix E721 in TriangleBase, show a fake compute() output, and align the autosummary template. The ruff workflow lints touched files with per-file ignores cleared. The template now unions the documented Triangle attrs and arithmetic dunders so #1208, #1212, and #1213 do not clobber each other on merge. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>
Summary of Changes
ExamplesforTriangle.loc,.iloc,.at,.iat, column[]selection, and column assignment inchainladder/core/slice.py.loc/iloc/at/iatas properties so the examples appear on the Triangle API page (instead of being excluded as attributes).copy()/ slicing by constructing them on access.Related GitHub Issue(s)
Additional Context for Reviewers
This is the first of the remaining core-module PRs for #704 (
slice.pyis the highest-priority leftover). Follow-ups:base.py,common.py,display.py,dunders.py,io.py, and remainingpandas.pymethods.loc/iloc/at/iatare now properties that always wrapself._set_slicersonly refreshesvirtual_columns. Slicing tests: 72 passed; triangle+slicing: 345 passed.Checklist
Made with Cursor