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

arcgis engine鎸囧畾鑼冨洿瀵煎嚭灞忓箷鍥剧墖

Python鍩虹涔嬫牸寮忓寲杈撳嚭銆佽繍绠楃銆佹暟瀛椾笌甯冨皵鍊间簰鎹互鍙妛hile...else

绠楁硶銆佹暟鎹粨鏋勫涔犳寚鍗?/h1>

odoo 瀵煎叆鏂囦欢xml鍒朵綔,浣跨敤csv 鏂囦欢鍒朵綔xml 鏂囦欢

涓€绔欐敹褰曡绠楁満鐭ヨ瘑浣撶郴锛氱畻娉曘€佹搷浣滅郴缁熴€佹暟鎹簱銆佺紪绋嬪疄璺点€佺郴缁熻璁$瓑