Semantic link functions for phonenumbers package. Enables validation of phone numbers in FabricDataFrames.
Project description
FabricDataFrames dynamically expose semantic functions based on logic defined by each function. For example, the is_holiday function shows up in the autocomplete suggestions when you're working on a FabricDataFrame containing both a datetime column and a country column.
Each semantic function uses information about the data types, metadata (such as Power BI data categories), and the data in a FabricDataFrame or FabricSeries to determine its relevance to the particular data on which you're working.
Semantic functions are automatically discovered when annotated with the @semantic_function decorator. You can think of semantic functions as being similar to C# extension methods applied to the popular DataFrame concept.
from sempy.fabric import FabricDataFrame
df = FabricDataFrame(
{"num": ["+442083661177", "ABC000-0000", "abc"], "country": ["US", "AT", "Unknown"]},
column_metadata={"country": {"data_category": "Country"}},
)
is_phone_series = df.is_phonenumber(col_num="num", col_country="country")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for semantic_link_functions_phonenumbers-0.7.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2475e391c11f28b29a789f07bf1eba7052b3d8263e964d96c2ac5b34dffb99c |
|
MD5 | 06ac4e24b93145c7181b12a4953eedb8 |
|
BLAKE2b-256 | ce08ab0e0cca1aba1fcaccce970fa7e52c1e2e2b3e3fd46328bc9f4326d34fca |