2019年8月27日

摘要: import cx_Oracle as oracleimport sysimport os #连接oracle(使用外部参数传递用户名及密码)l_conn_sql = '%(username)s/%(password)s@topprod'\ %{'username':sys.argv[1],'pas 阅读全文
posted @ 2019-08-27 17:31 SmartTony_07 阅读(506) 评论(0) 推荐(0)
摘要: import numpy as npimport pandas as pd#读取数据df = pd.read_excel('E:/PythonData/data/pdata.xlsx',sheet_name='Sheet1')print(df)#数据分组df1=df.groupby(['Name']).mean()print(df1) #读取数据df=pd.read_excel('E:/Pytho... 阅读全文
posted @ 2019-08-27 17:23 SmartTony_07 阅读(2903) 评论(0) 推荐(0)
摘要: #更改列名df.rename(columns={'English':'英语','Math':'数学','Language':'语文'},inplace=True)print(df) 阅读全文
posted @ 2019-08-27 16:44 SmartTony_07 阅读(197) 评论(0) 推荐(0)

导航