没有项目描述
thecurator的Python项目详细描述
馆长帮助您定义将脏数据转换为可消费数据库的管道。
用法
fromthecuratorimportCurator# Paths to files describing different tablestable_descriptions=['patient.yml','lab.yml']curator=Curator(sqlalchemy_engine,table_descriptions)# Transform a pandas DataFrame according to the descriptionscurator.transform_df('patient',patient_df)# Transform a dictionary array according to the descriptionscurator.transform_dicts('patient',patient_dicts)# Transform and insert a dictionary array according to the descriptionscurator.insert_dicts('lab',lab_dicts)
有关更多示例,请参见测试。即将推出更多…
开发
- Install development requirements pip install -r dev-requirements.txt
- Make changes
- Run the tests pytest tests
- See the Makefile for other useful commands