Agent skill
data-analysis-1-lazy-evaluation-first
Sub-skill of data-analysis: 1. Lazy Evaluation First (+3).
Install this agent skill to your Project
npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_archive/data/analysis/data-analysis/1-lazy-evaluation-first
SKILL.md
1. Lazy Evaluation First (+3)
1. Lazy Evaluation First
# Prefer lazy operations, collect only when needed
result = (
pl.scan_parquet("data/*.parquet")
.filter(...)
.group_by(...)
.agg(...)
.collect() # Execute at the end
)
2. Progressive Disclosure in Dashboards
# Start with summary, allow drill-down
st.header("Overview")
show_metrics()
with st.expander("Detailed Analysis"):
show_detailed_charts()
with st.expander("Raw Data"):
st.dataframe(df)
3. Reproducible Reports
# Include metadata in reports
report_metadata = {
"generated_at": datetime.now().isoformat(),
"data_source": "sales_database",
"date_range": f"{start_date} to {end_date}",
"filters_applied": filters
}
4. Performance Monitoring
import time
def timed_operation(name):
def decorator(func):
def wrapper(*args, **kwargs):
start = time.time()
result = func(*args, **kwargs)
duration = time.time() - start
logger.info(f"{name} completed in {duration:.2f}s")
return result
return wrapper
return decorator
@timed_operation("Data aggregation")
def aggregate_sales():
...
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gsd-complete-milestone
Archive completed milestone and prepare for next version
gsd-reapply-patches
Reapply local modifications after a GSD update
gsd-verify-work
Validate built features through conversational UAT
gsd-thread
Manage persistent context threads for cross-session work
clinical-trial-protocol
Generate clinical trial protocols for medical devices or drugs through a modular, waypoint-based architecture with research-only and full protocol modes.
single-cell-rna-qc
Performs quality control on single-cell RNA-seq data (.h5ad or .h5 files) using scverse best practices with MAD-based filtering and comprehensive visualizations.
Didn't find tool you were looking for?