简化表类型数据规范化

sandpaper的Python项目详细描述


docs/source/_static/logo.png

PyPi StatusSupported VersionsRelease StatusLicenseDocumentation StatusBuild StatusCode CoverageRequirements StatusSay Thanks

基本用法

通过阅读documentation了解更多!

fromsandpaperimportSandPaperpaper=SandPaper('my-sandpaper')\
   .strip(# strip whitespace from column commentcolumn_filter=r'comment')\
   .translate_text({# get group id from column groupr'^group_(\d+)$':'{0}'},column_filter=r'group')\
   .translate_date({# normalize date from column date'%Y-%m-%d':'%c','%m-%d':'%c'},column_filter=r'date')# apply sandpaper rules to a source file and write results to a target filepaper.apply('/home/you/source.csv','/home/you/target.csv')

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

推荐PyPI第三方库


热门话题
java Android使用两个后台服务错误   解压缩HTTPInputStream时,java GZIPInputStream过早关闭   javax和javax的区别是什么。网ssl。密钥库和服务器。ssl。为SpringBoot应用程序指定密钥库时的密钥库属性   java生成两个JPanel,而我只需要一个   java深度链接从play store安装应用程序时获取数据   java 安卓应用程序在退出时未正确释放蓝牙   java正确使用setCellValueFactory   java开放JdbcTemplate连接处于只读模式?   使用Spring MVC创建服务时发生java错误   JavaFX获取安装在计算机中的特定应用程序的版本   SecureRandom的安全问题:PRNG在java 1.5中不一致   windows我可以创建一个独立的。带Inno设置的Java应用程序的exe安装程序?   如何使用JavaServlet下载csv文件?   java从生成的缓冲图像中添加图像作为jasper中的数据记录?   java日期和时间解析