Featuresmith Icon
Featuresmith
  • Docs
  • SDK
  • CLI
  • Examples
  • Roadmap
v0.4.0
Documentation

Getting Started

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

Core Concepts

  • Architecture Overview
  • Dataset Layer
  • Connectors
  • Profiling Engine
  • Rule Engine
  • Dataset Review Engine
  • ML Readiness Score
  • Target Leakage Detection
  • Dataset Diff Engine
  • Target Column Concept
  • Mental Model & Workflow
  • Interpreting Findings
  • Workflow Cheat Sheet
  • Beginner Glossary

Python SDK

  • load()
  • profile()
  • analyze()
  • review()
  • diff()
  • score()
  • plan()
  • Dataset
  • Data Models
  • Profile Models
  • Rule & Finding Models
  • Review Models
  • Score Models
  • Leakage Models
  • Diff Models
  • Exceptions
  • Plugins

CLI Reference

  • analyze
  • review
  • diff
  • score
  • plan
  • Configuration

Guides

  • CI/CD Integration
  • Custom Rules
  • Writing Plugins

Resources

  • Release Notes
  • FAQ
  • Troubleshooting
DocsGuide

Getting Started

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

Core Concepts

  • Architecture Overview
  • Dataset Layer
  • Connectors
  • Profiling Engine
  • Rule Engine
  • Dataset Review Engine
  • ML Readiness Score
  • Target Leakage Detection
  • Dataset Diff Engine
  • Target Column Concept
  • Mental Model & Workflow
  • Interpreting Findings
  • Workflow Cheat Sheet
  • Beginner Glossary

Python SDK

  • load()
  • profile()
  • analyze()
  • review()
  • diff()
  • score()
  • plan()
  • Dataset
  • Data Models
  • Profile Models
  • Rule & Finding Models
  • Review Models
  • Score Models
  • Leakage Models
  • Diff Models
  • Exceptions
  • Plugins

CLI Reference

  • analyze
  • review
  • diff
  • score
  • plan
  • Configuration

Guides

  • CI/CD Integration
  • Custom Rules
  • Writing Plugins

Resources

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

Python SDK

fs.profile()

SDK Reference: statistical profiling

python
1def profile(
2 source: object,
3 *,
4 max_correlation_columns: int = 100,
5 max_frequency_table_size: int = 1000
6) -> ProfileResult:

Profile a Dataset or tabular source directly, executing vectorized summaries and returning a strongly-typed, serializable ProfileResult.

When to Use It

Use when you need detailed statistical profiles of dataset columns (min, max, mean, quantiles, missingness, cardinality, frequency tables, correlations) without running rule evaluations or review scoring.

Arguments

  • source: Dataset | str | DataFrame. Pre-loaded Dataset or file/data source.
  • max_correlation_columns: int (default 100). Column cap for Pearson correlation computations to prevent combinatorial blowup.
  • max_frequency_table_size: int (default 1000). Maximum unique categories to track in frequency table summaries.

Return Value

Returns a frozen ProfileResult dataclass containing dataset_summary, column_profiles, typed profiles (numeric_profiles, categorical_profiles, datetime_profiles, text_profiles), missingness & duplicate summaries, correlation matrices, and execution metadata.

Exceptions

  • ConnectorError: Raised if an unresolved file path or invalid DataFrame source fails to load before profiling.

Example

python
1import featuresmith as fs
2
3profile = fs.profile("customers.csv", max_correlation_columns=50)
4
5# Inspect column summaries
6print(profile.column_profiles["age"].missing_count)
7print(profile.dataset_summary.row_count)
8print(profile.numeric_profiles["income"].mean)

Notes and Limitations

  • Deterministic Engine: Computations run on Polars or pandas backend using vectorized primitives.
  • Frozen Output: The returned ProfileResult is fully frozen, slotted, and serializable via profile.to_dict().

Explore

  • Quick Start
  • Python SDK
  • CLI Reference
  • Examples
Featuresmith Icon
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 by Aditya Gangwani in the open.