This library integrates the `phonenumbers` package with Semantic Link, enabling validation and enrichment of phone numbers within Microsoft Fabric DataFrames (FabricDataFrames). It simplifies operations on phone number columns for data quality and analysis, adding columns indicating validity, type, and various formats. The current version is 0.14.0, and it appears to follow the active release cadence of the broader `semantic-link-functions` project.
pip install semantic-link-functions-phonenumbersVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize a `FabricDataFrame` and use `validate_phone_number` to process a column containing phone numbers. The function enriches the DataFrame by adding several new columns with validation results and formatted phone numbers, such as `phone_is_valid` and `phone_e164_format`.
Ensure `pip install semantic-link-functions-phonenumbers phonenumbers sempy` is run to cover all dependencies.
Use `sempy.fabric.FabricDataFrame` for optimal compatibility and feature utilization, especially in a Microsoft Fabric environment.
Review the function signature and explicitly pass `country_code`, `region_code`, or `strict=True` to tailor the validation logic to your specific needs.