大熊猫的npi验证很容易。
pandas-npi的Python项目详细描述
熊猫NPI
熊猫的npi验证变得简单
安装
PIP安装熊猫核电站
基本用法
更新定义
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.
验证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-提供给定NPI的提供商或设施名称
- nppes_type-显示npi是提供商还是设施npi。注意独资企业 无需在贷款NPI项下付款
- NPPES U状态-显示NPI是激活的还是停用的
- NPPES U停用日期-如果NPI已停用,则列出停用日期。另外是南。
- {STR 1 } $最后一个注释——如果NPI现在不存在,并且从未存在过,NPPESYNEX,NPPESH类型,以及 NPPES U状态将全部标记为“无效”。