featuresmith
  • Docs
  • SDK
  • CLI
  • Examples
  • Roadmap
v0.1.0
Documentation

Getting Started

  • Introduction
  • Installation
  • Quick Start
  • Benchmarks
  • Development Setup
  • Contributing

Core Concepts

  • Architecture Overview
  • Dataset Layer
  • Connectors
  • Profiling Engine
  • Rule Engine

Python SDK

  • load()
  • profile()
  • analyze()
  • Data Models
  • Exceptions
  • Plugins

CLI Reference

  • analyze
  • Configuration

Guides

  • CI/CD Integration
  • Custom Rules
  • Writing Plugins

Resources

  • Release Notes
  • FAQ
  • Troubleshooting
DocsGuide

Getting Started

  • Introduction
  • Installation
  • Quick Start
  • Benchmarks
  • Development Setup
  • Contributing

Core Concepts

  • Architecture Overview
  • Dataset Layer
  • Connectors
  • Profiling Engine
  • Rule Engine

Python SDK

  • load()
  • profile()
  • analyze()
  • Data Models
  • Exceptions
  • Plugins

CLI Reference

  • analyze
  • Configuration

Guides

  • CI/CD Integration
  • Custom Rules
  • Writing Plugins

Resources

  • Release Notes
  • FAQ
  • Troubleshooting
HomeDocsfs.analyze()

Python SDK

fs.analyze()

SDK Reference: comprehensive analysis

python
1def analyze(
2 source: object,
3 *,
4 target_column: str | None = None,
5 enabled_rules: list[str] | None = None,
6 rule_config: dict[str, Any] | None = None,
7 max_correlation_columns: int = 100,
8 max_frequency_table_size: int = 1000,
9) -> RuleResult:

Combines loading, profiling, and rules auditing into a single public SDK endpoint.

Arguments

  • source: Dataset | str | DataFrame. Input data or path.
  • target_column: str | None (default None). Target column name. Required for target leakage checks.
  • enabled_rules: list[str] | None (default None). Explicit rules to evaluate. If empty, runs all defaults.
  • rule_config: dict[str, Any] | None. Keyword argument config overrides for specific rules.
  • max_correlation_columns: int (default 100). Cap limit for correlation matrix computation.
  • max_frequency_table_size: int (default 1000). Frequency table storage cap.

Example

python
1import featuresmith as fs
2
3result = fs.analyze(
4 "train.csv",
5 target_column="churn",
6 rule_config={
7 "quality.missing_value_threshold": {"threshold": 30.0},
8 "statistical.high_correlation": {"threshold": 0.85},
9 }
10)
11
12print(f"Triggered {len(result.findings)} findings.")

Explore

  • Quick Start
  • Python SDK
  • CLI Reference
  • Examples
featuresmith

Open-source data profiling and validation for Python engineers.

Documentation

  • Introduction
  • Quick Start
  • Python SDK
  • CLI Reference

Community

  • GitHub
  • Discussions
  • Issues
  • Contributing

Project

  • Roadmap
  • Release status
  • Benchmarks
  • Changelog
  • Examples

Legal

  • Apache 2.0 License
  • Code of Conduct
  • Security

© 2026 Featuresmith Contributors. Released under the Apache 2.0 License.

Built in the open — contributions welcome.