摘要: #Group by Function df.groupby('Date')[['Date']].count() df.groupby('Date')[['Date']].sum() # if it can be sumable #Sort Function type(df['Date']) <cla 阅读全文
posted @ 2016-01-28 15:17 西番莲果汁 阅读(1199) 评论(0) 推荐(0) 编辑
摘要: Con= MySQLdb.connect(host='192.168.4.166',user='root',passwd='1234',db='test')cur=Con.cursor()cur.execute('insert into staff_daily(Date,Name,Task_num)... 阅读全文
posted @ 2016-01-25 15:33 西番莲果汁 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 因为python的read和write方法的操作对象都是string。而操作二进制的时候会把string转换成list进行解析,解析后重新写入文件的时候,还得转换成string。import stringstr = 'abcde' list = list(str)list['a', 'b', 'c'... 阅读全文
posted @ 2016-01-19 18:19 西番莲果汁 阅读(120699) 评论(0) 推荐(5) 编辑
摘要: 阅读全文
posted @ 2016-01-04 16:47 西番莲果汁 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Auto filter:ActiveSheet.Range("A:F").AutoFilter Field:=3, Criteria1:="*Agent*"Columns("B:B").SelectSelection.Delete Shift:=xlToLeftColumns("C:C").Sele... 阅读全文
posted @ 2015-10-20 16:05 西番莲果汁 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 1. 将该APP安装至Django项目中。(settings.py) INSTALLED_APPS = ( # ... 'pagination',)2. 在Django项目的middleware中安装此APP:(请修改settings.py)MIDDLEWARE_CLASS... 阅读全文
posted @ 2015-10-07 14:36 西番莲果汁 阅读(257) 评论(0) 推荐(0) 编辑
摘要: cnxn = pyodbc.connect(driver='{SQL Server}', host=server, database=db1, trusted_connection=tcon, user=uname, password=pword)curso... 阅读全文
posted @ 2015-10-06 18:26 西番莲果汁 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 1 def file_download(request): 2 con= MySQLdb.connect(host='192.168.xxx.xxx',user='root',passwd='xxxx',db='test') 3 cursor = con.cursor() 4 query = "SE 阅读全文
posted @ 2015-08-24 15:59 西番莲果汁 阅读(243) 评论(0) 推荐(0) 编辑
摘要: sharepoint list color change, column width change, add titile (bold with date)? 阅读全文
posted @ 2015-07-01 12:10 西番莲果汁 阅读(364) 评论(0) 推荐(0) 编辑
摘要: import requests,simplejsonfrom requests_ntlm import HttpNtlmAuthp1 = requests.get("http://your_share_point_server_link/_api/Web/Lists(GUID ID#)/items"... 阅读全文
posted @ 2015-06-02 18:39 西番莲果汁 阅读(439) 评论(0) 推荐(0) 编辑