semantic-link-functions-validators


Namesemantic-link-functions-validators JSON
Version 0.7.3 PyPI version JSON
download
home_pagehttps://github.com/microsoft/semantic-link-functions
SummarySemantic link functions for validators package. Enables validation of email addresses, credit card numbers, ... in FabricDataFrames.
upload_time2024-05-14 10:12:07
maintainerNone
docs_urlNone
authorMicrosoft
requires_python>=3.10
licenseMIT License
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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.

```python
from sempy.fabric import FabricDataFrame

df = FabricDataFrame(
        {"contact_email": ["a@b.com", "d.com"],
         "amex": ["378282246310005", "4242424242424242"],
         "iban": ["DE29100500001061045672", "123456"],
         "es_nie": ["X0095892M", "X0095892X"]}
    )

df["contact_email"].validators.is_email()
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/microsoft/semantic-link-functions",
    "name": "semantic-link-functions-validators",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": "Microsoft",
    "author_email": "semanticdatascience@service.microsoft.com",
    "download_url": null,
    "platform": "Microsoft Fabric",
    "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.\n\nEach 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.\n\nSemantic 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.\n\n```python\nfrom sempy.fabric import FabricDataFrame\n\ndf = FabricDataFrame(\n        {\"contact_email\": [\"a@b.com\", \"d.com\"],\n         \"amex\": [\"378282246310005\", \"4242424242424242\"],\n         \"iban\": [\"DE29100500001061045672\", \"123456\"],\n         \"es_nie\": [\"X0095892M\", \"X0095892X\"]}\n    )\n\ndf[\"contact_email\"].validators.is_email()\n```\n\n\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Semantic link functions for validators package. Enables validation of email addresses, credit card numbers, ... in FabricDataFrames.",
    "version": "0.7.3",
    "project_urls": {
        "Homepage": "https://github.com/microsoft/semantic-link-functions"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "a8bd66430ddc2f17aaab5644509ee84d754d20ecc403a97bf6a3800d1d2a78b0",
                "md5": "0c96c67a4dd1c5e17757e7e952371c17",
                "sha256": "5ac7b313f8d954143a72eb3d5e05a029a50866df4cf92a2efc57aa0b452e2d0b"
            },
            "downloads": -1,
            "filename": "semantic_link_functions_validators-0.7.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0c96c67a4dd1c5e17757e7e952371c17",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 4747,
            "upload_time": "2024-05-14T10:12:07",
            "upload_time_iso_8601": "2024-05-14T10:12:07.384877Z",
            "url": "https://files.pythonhosted.org/packages/a8/bd/66430ddc2f17aaab5644509ee84d754d20ecc403a97bf6a3800d1d2a78b0/semantic_link_functions_validators-0.7.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-14 10:12:07",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "microsoft",
    "github_project": "semantic-link-functions",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "semantic-link-functions-validators"
}
        
Elapsed time: 0.32177s