postgresql和aws redshift的pandas扩展(不是officeil库)

pandas-rs的Python项目详细描述


[![圆形ci](https://circleci.com/gh/samurait/pandas-rs.svg?style=svg)“(https://circleci.com/gh/samurait/pandas rs)


受[pandas td]启发(https://github.com/treasure data/pandas td)


您必须拥有PostgreSQL客户端。


上面的pandas r也适用于postgresql。
第一个通过shell导出密码(推荐)

~~~ shell
导出redshift或@postgresql的password='密码'
~~~~

~~ py
导入pandas作为rs
导入操作系统;仅当您将通过环境变量访问密码时才使用

rs。创建引擎(
dbname='dev,
user='test',
password=os.environ['redshift'u或是postgresql'u postgresql'u password'],
host='foobbar.redshift.exmple',
port='5439'




<打印(rs.read'u sql(“‘hello postgresql或redshift'gregre'gregregregregregregregregresql或redshift'greshift'gre'gre'gre'gre'gre'gre'gre'gre'gre'gre'gre'gre'gre'gre'gre'gre'gre'gre'gre'gre'gre'gre'gre'gre'gre'gre'gre'gre'gre'br/>~~~

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

推荐PyPI第三方库


热门话题
java Clojure关键字在内存中的大小是多少?   Java中有固定长度的通用数组对象吗?   PostgreSQL:通过Java更新我的用户表   错误:使用java解析xml   java Json显示列表中对象的名称   java比较JodaTime时区   与JAVA中的API和包的区别?   java的int值在for循环中不改变   谷歌应用引擎中的java RSA   迁移到spring 5后出现java非法字符错误   java Websphere管理控制台不工作   JavaGSON如何始终在json中包含毫秒?   带有空格和双引号的windows Java ProcessBuilder命令参数失败   java错误:重复的zip条目[43.jar:org/apache/http/annotation/NotThreadSafe.class]