Skip to content
Back to skills

Step 6 Calculation Block Detection

ASecurity

Sub-skill of xlsx-to-python: Step 6 \u2014 Calculation Block Detection.

  • 17 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
developmentpythongo

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill step-6-calculation-block-detection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Step 6 Calculation Block Detection?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Step 6 Calculation Block Detection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-step-6-calculation-block-detection/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-step-6-calculation-block-detection)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: xlsx-to-python-step-6-calculation-block-detection
description: "Sub-skill of xlsx-to-python: Step 6 \u2014 Calculation Block Detection."
version: 1.0.0
category: data
type: reference
scripts_exempt: true
---

# Step 6 — Calculation Block Detection

## Step 6 — Calculation Block Detection


Heuristic to separate calculation regions from data/lookup tables:

```python
def detect_calculation_blocks(ws_formulas, min_formula_ratio=0.3):
    """Identify contiguous regions dominated by formulas."""
    blocks = []
    current_block = []
    for row in ws_formulas.iter_rows():
        formula_count = sum(
            1 for c in row
            if isinstance(c.value, str) and c.value.startswith("=")
        )
        total = sum(1 for c in row if c.value is not None)
        if total > 0 and formula_count / total >= min_formula_ratio:
            current_block.append(row[0].row)
        else:
            if len(current_block) >= 2:
                blocks.append((current_block[0], current_block[-1]))
            current_block = []
    if len(current_block) >= 2:
        blocks.append((current_block[0], current_block[-1]))
    return blocks
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.