大熊猫的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状态将全部标记为“无效”。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java我能在这个程序中更好地使用内存吗?   为什么我的Java while循环迭代了一半   java IntelliJ IDEA不在构建时复制资源   socket仅在Java TCP服务器输出上检查客户端断开连接   java游戏物理摩擦   java片段onClick调用方法   symja数学分析器中无法识别java Abs[x]   java在使用泛型时创建二进制搜索树类的实例?   java在外键约束表上的添加和删除   语法java表达式的含义,如果有条件   java创建内联对象并作为参数传递   是否有相当于Redis排序集(zset)的Java数据结构   java找不到适合的方法(无参数)   音频文件操作给定字节帧的音量Java   Eclipse4不以JavaWebStart启动   java如何使用org在JSON对象中获取嵌套的键元素。json?   java与Jackson的反序列化:“org.codehaus.Jackson.map.JsonMappingException:无法反序列化[projectname]的实例。”   字符串的Java正则表达式   spring集成上的java检测缺火指令