numpy-masked
The numpy.ma module provides masked arrays, which couple a data array with a boolean mask. Masked elements are ignored in operations like mean(), sum(), and log(), making them ideal for datasets where
npx skills add majiayu000/claude-skill-registry --skill numpy-masked-cuba6112-skillfactory-2 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
--- name: numpy-masked description: Masked arrays for robust handling of missing or invalid data, ensuring they are excluded from statistical and mathematical computations. Triggers: masked array, numpy.ma, missing data, invalid values, hard mask. --- ## Overview The `numpy.ma` module provides masked arrays, which couple a data array with a boolean mask. Masked elements are ignored in operations like `mean()`, `sum()`, and `log()`, making them ideal for datasets where certain entries should be excluded without deleting them and losing shape information. ## When to Use - Handling sensor data with "no-data" values (e.g., -999). - Performing statistics on arrays containing NaNs or Infs where you want the invalid values automatically excluded. - Protecting specific data points from modification during processing using a "hard mask." - Exporting data where missing values must be filled with a specific constant. ## Decision Tree 1. Do you need to keep the original array shape while ignoring certain values? - Use `ma.masked_array`. 2. Are you performing math on risky values (e.g., negative numbers in log)? - Use `ma.masked_invalid(arr)` or `ma.masked_less(arr, 0)`. 3. Want to extract only
- Overview
- When to Use
- Decision Tree
- Workflows
- Non-Obvious Insights
- Evidence
- Scripts
- Dependencies
- References
What does the numpy-masked skill do?
The numpy.ma module provides masked arrays, which couple a data array with a boolean mask. Masked elements are ignored in operations like mean(), sum(), and log(), making them ideal for datasets where
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill numpy-masked-cuba6112-skillfactory-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
