Python DataFrame瀵煎嚭CSV銆佹暟鎹簱
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Python DataFrame瀵煎嚭CSV銆佹暟鎹簱相关的知识,希望对你有一定的参考价值。
鏍囩锛?a href='http://www.mamicode.com/so/1/div' title='div'>div
pytho port acl dex .data dom ring bsp鍐欏叆Oracle
from sqlalchemy import create_engine import pandas as pd import numpy as np df = pd.DataFrame(np.random.randn(3, 4)) conn_string=鈥?/span>oracle+cx_oracle://scott:[email protected]:1521/orcl鈥?/span> engine = create_engine(conn_string, echo=False) df.to_sql(鈥?/span>Output鈥?/span>, con=engine)
鍐欏叆csv
import numpy as np import pandas as pd df = pd.DataFrame(np.random.randn(3, 4)) df.to_csv(鈥?/span>./a.csv鈥?/span>, sep=鈥?/span>,鈥?/span>, header=True, index=True)
以上是关于Python DataFrame瀵煎嚭CSV銆佹暟鎹簱的主要内容,如果未能解决你的问题,请参考以下文章
JS 浣跨敤xlsx.core.js 鏁版嵁瀵煎嚭鍒癳xcel