
Sn Da Large File Analysis
This is a performance rescue kit for Excel files that choke pandas. It routes you through three tiers: under 10k rows, use normal read_excel; 10k to 100k, cache to Parquet; over 100k, stream with openpyxl's read_only mode and iter_rows to avoid loading everything into memory. The streaming converter writes chunks as Parquet with all columns cast to string to dodge PyArrow schema conflicts, then you convert types after. Also includes dtype downcasting that claims 50 to 80 percent memory savings and a write_only mode for exports over a million rows. The trigger logic is baked in, so it activates on row counts or keywords like OOM, streaming read, or big data. Good for when your data analysis suddenly becomes a memory management problem.
- skills.sh installs
- 135
- GitHub stars
- 6.1K
- last updated
- Jun 11, 2026
Install
$ npx -y skills add opensensenova/sensenova-skills --skill sn-da-large-file-analysis --agent claude-codeInstalls into .claude/skills of the current project.
Files
Large Scale Excel Analysis Skill
Mandatory Rules
When total rows >= 10,000, you MUST use the methods in this skill.
| Data Scale | Read Strategy | Reason |
|---|---|---|
| < 10k rows | pd.read_excel() directly | No memory pressure |
| 10k–100k rows | pd.read_excel() → convert to Parquet → pd.read_parquet() for analysis | Avoid repeated slow reads |
| 100k–1M rows | openpyxl read_only + iter_rows streaming → Parquet | pd.read_excel() will OOM or timeout |
| > 1M rows | Streaming read + multi-sheet split (Excel max 1,048,576 rows per sheet) | Must chunk |
Prohibited:
- Do NOT use
pd.read_excel()to fully load 100k+ row files - Do NOT search for fonts with
fc-list,find ... fonts, or install packages withpip install - Do NOT use
df.iterrows()on large DataFrames (useitertuples()or vectorized ops) - Do NOT use
df.apply(lambda...)for operations that can be vectorized
Environment Setup
import pandas as pd
import numpy as np
import os
import gc
pd.options.mode.copy_on_write = True
Sponsors
Details
- Repository
- github.com/opensensenova/sensenova-skills
- Categories
- Debugging, Automation & Workflows, Office & Documents
- License
- MIT
- First seen
- Jun 11, 2026
More from opensensenova/sensenova-skills
All 26- Sn Ppt Doctor135
- Sn Research Report135
- Sn Report Format Discovery134
- Sn Search Academic134
- Sn Image Imitate133
- Sn Search Code131
- Sn Search Social Cn131
- Sn Search Social En127
- Sn Update113
- Sn Da Non Spreadsheet Analysis
- Sn Dimension Research
- Sn Research Planning
- Sn Research Synthesis
- Sn Search Image
- Sn Image Base190
- Sn Infographic180
- Sn Ppt Standard170
- Sn Ppt Entry162
- Sn Md To Html Report161
- Sn Image Doctor153
- Sn Image Resume153
- Sn Deep Research148
- Sn Da Excel Workflow147
- Sn Da Image Caption143