一组常用的Python工具,主要用于处理自己常用的工作问题(主要在Windows上)。 (说白了就是个工具集的罗列,减少一些重复劳动。)
目前已有的小工具:
saveExcel数据表保存方法compress压缩包处理utobYouTube常用数据处理方法frame数据框DataFrame快捷方法pretools四舍五入与日期处理ppTransPPT转换与PPT拼接长图graphs绘图工具(子弹图、颜色映射、中国地图可视化|热力图)
目前完成了部分便捷小工具。预测工具和更多绘图工具还在构建中。
现在已经可以直接使用pip安装了:
pip install pytoolszLinux上可以安装 pytoolsz-lnx ,只是目前 pytoolsz-lnx 功能较少。
其他说明
国家代码转换的说明:
- ISO2 (ISO 3166-1 alpha-2) - including UK/EL for Britain/Greece (but always convert to GB/GR)
- ISO3 (ISO 3166-1 alpha-3)
- ISO - numeric (ISO 3166-1 numeric)
- UN numeric code (M.49 - follows to a large extend ISO-numeric)
- A standard or short name
- The "official" name
- Continent: 6 continent classification with Africa, Antarctica, Asia, Europe, America, Oceania
- Continent_7 classification - 7 continent classification spliting North/South America
- UN region
- EXIOBASE 1 classification (2 and 3 letters)
- EXIOBASE 2 classification (2 and 3 letters)
- EXIOBASE 3 classification (2 and 3 letters)
- WIOD classification
- Eora
- OECD membership (per year)
- MESSAGE 11-region classification
- IMAGE
- REMIND
- UN membership (per year)
- EU membership (including EU12, EU15, EU25, EU27, EU27_2007, EU28)
- EEA membership
- Schengen region
- Cecilia 2050 classification
- APEC
- BRIC
- BASIC
- CIS (as by 2019, excl. Turkmenistan)
- G7
- G20 (listing all EU member states as individual members)
- FAOcode (numeric)
- GBDcode (numeric - Global Burden of Disease country codes)
- IEA (World Energy Balances 2021)
- DACcode (numeric - OECD Development Assistance Committee)
- ccTLD - country code top-level domains
- GWcode - Gledisch & Ward numerical codes as published in https://www.andybeger.com/states/articles/statelists.html
- CC41 - common classification for MRIOs (list of countries found in all public MRIOs)
- IOC - International Olympic Committee (IOC) country codes