Programming
by benchflow-ai
Python and R programming for data analysis, automation, and reproducible analytics
Skill Details
Repository Files
7 files in this skill directory
name: programming description: Python and R programming for data analysis, automation, and reproducible analytics version: "2.0.0" sasmp_version: "2.0.0" bonded_agent: 05-programming-expert bond_type: PRIMARY_BOND
Skill Configuration
config: atomic: true retry_enabled: true max_retries: 3 backoff_strategy: exponential code_execution: sandboxed
Parameter Validation
parameters: language_focus: type: string required: true enum: [python, r, both] default: python skill_level: type: string required: true enum: [beginner, intermediate, advanced, expert] default: beginner focus_area: type: string required: false enum: [fundamentals, pandas, visualization, automation, ml, all] default: all
Observability
observability: logging_level: info metrics: [code_execution_success, test_pass_rate, performance_score]
Programming for Data Analytics Skill
Overview
Master Python and R programming for data analysis, from basic syntax to advanced data manipulation and automation.
Core Topics
Python for Data Analysis
- Python fundamentals and syntax
- Pandas for data manipulation
- NumPy for numerical computing
- Data cleaning and preprocessing
R for Statistics
- R fundamentals and tidyverse
- dplyr for data transformation
- ggplot2 for visualization
- Statistical modeling in R
Data Wrangling
- Reading various file formats (CSV, JSON, Excel, Parquet)
- Handling missing data
- Data type conversions
- Merging and reshaping datasets
Automation & Reproducibility
- Jupyter notebooks and R Markdown
- Script automation and scheduling
- Version control with Git
- Environment management (conda, venv)
Learning Objectives
- Write efficient Python code for data analysis
- Use R for statistical computing
- Automate repetitive data tasks
- Create reproducible analysis workflows
Error Handling
| Error Type | Cause | Recovery |
|---|---|---|
| ImportError | Missing package | pip/conda install package |
| SyntaxError | Invalid code | Check syntax, use linter |
| MemoryError | Data too large | Use chunking or dask |
| TypeError | Wrong data type | Explicit type conversion |
| FileNotFoundError | Missing file | Verify path, check permissions |
Related Skills
- databases-sql (for data extraction)
- statistics (for statistical programming)
- advanced (for machine learning implementation)
Related Skills
Xlsx
Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas
Clickhouse Io
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
Clickhouse Io
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
Analyzing Financial Statements
This skill calculates key financial ratios and metrics from financial statement data for investment analysis
Data Storytelling
Transform data into compelling narratives using visualization, context, and persuasive structure. Use when presenting analytics to stakeholders, creating data reports, or building executive presentations.
Kpi Dashboard Design
Design effective KPI dashboards with metrics selection, visualization best practices, and real-time monitoring patterns. Use when building business dashboards, selecting metrics, or designing data visualization layouts.
Dbt Transformation Patterns
Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.
Sql Optimization Patterns
Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.
Anndata
This skill should be used when working with annotated data matrices in Python, particularly for single-cell genomics analysis, managing experimental measurements with metadata, or handling large-scale biological datasets. Use when tasks involve AnnData objects, h5ad files, single-cell RNA-seq data, or integration with scanpy/scverse tools.
Xlsx
Spreadsheet toolkit (.xlsx/.csv). Create/edit with formulas/formatting, analyze data, visualization, recalculate formulas, for spreadsheet processing and analysis.
