Python 常用模块
来源:互联网 发布:火影忍者观看顺序知乎 编辑:程序博客网 时间:2024/06/07 09:37
csvkit https://csvkit.readthedocs.io/en/1.0.2/
csvkit is a suite of command-line tools for converting to and working with CSV, the king of tabular file formats.
It is inspired by pdftk, gdal and the original csvcut tool by Joe Germuska and Aaron Bycoffe.
If you need to do more complex data analysis than csvkit can handle, use agate.
Important links:
Repository: https://github.com/wireservice/csvkitIssues: https://github.com/wireservice/csvkit/issuesDocumentation: http://csvkit.rtfd.org/Schemas: https://github.com/wireservice/ffsBuildbot: https://travis-ci.org/wireservice/csvkit
Why csvkit?
Because it makes your life easier.
Convert Excel to CSV:
in2csv data.xls > data.csv
Convert JSON to CSV:
in2csv data.json > data.csv
Print column names:
csvcut -n data.csv
Select a subset of columns:
csvcut -c column_a,column_c data.csv > new.csv
Reorder columns:
csvcut -c column_c,column_a data.csv > new.csv
Find rows with matching cells:
csvgrep -c phone_number -r “555-555-\d{4}” data.csv > new.csv
Convert to JSON:
csvjson data.csv > data.json
Generate summary statistics:
csvstat data.csv
Query with SQL:
csvsql –query “select name from data where age > 30” data.csv > new.csv
Import into PostgreSQL:
csvsql –db postgresql:///database –insert data.csv
Extract data from PostgreSQL:
sql2csv –db postgresql:///database –query “select * from data” > new.csv
And much more…
- python模块 - 常用模块推荐
- 常用的python模块
- 常用的python模块
- python常用模块
- Python常用模块
- Python常用模块资料
- Python常用模块
- Python 常用模块
- Python常用模块
- python常用模块
- 常用的python模块
- Python常用模块资料
- Python常用模块
- Python常用模块资料
- Python 常用模块收集
- python常用模块
- python的常用模块
- 常用的python模块
- EasyUI入门7 datagrid根据列值设置checkbox的绑定状态
- Python、R、Java、 C++ 等:从业界反馈看机器学习语言趋势
- div 跟着鼠标移动
- jQuery .on()不起作用
- 新建文件所属组设置
- Python 常用模块
- Mysql中的replace
- Java io文件操作(按字符、字节、行、随机读取,追加,文件操作)
- KDtree
- linux查找命令总结
- js查看浏览器类型和版本
- 按月进行分组统计,上个月的21号到本月20号是一个月
- 直接插入排序算法
- springmvc httpclient 请求 响应