pandas-npi
NPI validation made easy with Pandas
Installation
pip install pandas-npi
Basic Usage
Update definitions
import pandas_npi
pandas_npi.update_definitions()
#------------------------------additional details------------------------------
#CMS updates the NPPES dataset about once per month. Running the above code
#on a monthly basis will ensure that you are using the most up-to-date information.
#Note that the function above has no parameters. Just run the function, and it will
#notify you when the update is complete.
Validate NPI
import pandas as pd
import pandas_npi
df = pd.read_csv("your_dataset_here.csv")
df = pandas_npi.validate(df, "npi_field_here")
#------------------------------additional details------------------------------
#The validate function takes care of cleaning/standardizing your npi. No need to
#preprocess on your end! Even special characters and letters are removed.
#Your dataset will be compared against the NPPES dataset. Four new fields will
#be added to your dataset: nppes_name, nppes_type, nppes_status, and nppes_deactivation_date.
#For full description of new fields, see below:
- nppes_name - gives the provider or facility name for the given NPI
- nppes_type - shows whether the NPI is a provider or facility NPI. Be aware that sole proprietors are not required to bill under a facility NPI
- nppes_status - shows whether an NPI is active or deactivated
- nppes_deactivation_date - If the NPI has been deactivated, lists the deactivation date. Else is NaN.
- A final note - If an NPI does not exist now, and has never existed, nppes_name, nppes_type, and nppes_status will all be labeled "invalid".
Metadata
Release files for pandas-npi 0.45
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pandas_npi-0.45.tar.gz | 3.2 kB | Without provenance | Details for pandas_npi-0.45.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pandas_npi-0.45-py3-none-any.whl | Python 3 | none | any | Details for pandas_npi-0.45-py3-none-any.whl |
Total release size: 7.1 kB
Release files / pandas_npi-0.45.tar.gz
| Download URL | pandas_npi-0.45.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9797846d4bf66cff1f24d3d887a7e87587de1b913517db0971ad732d884b2d57
|
|
BLAKE2b-256 checksum How to use checksums |
c1ffa1f1c92ccd36d3764940753903b79ace1798ed4a64eaf8a01f1dacad9fa6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
|
Release files / pandas_npi-0.45-py3-none-any.whl
| Download URL | pandas_npi-0.45-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0b4ec69a345e3dc19cee8dc3354f2798ef56345f5938b724dcad5402f66e284
|
|
BLAKE2b-256 checksum How to use checksums |
250900e9390b1abf7bd329513c80c09b2adfcd06252e0553426cc20622dd4e36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
|
Security for pandas-npi 0.45
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.