摘要:
excel时间转python时间 # excel时间转python时间 def date(dates, t=0): # 定义转化日期戳的函数,dates为日期戳 delta = timedelta(days=dates) # 将1899-12-30转化为可以计算的时间格式并加上要转化的日期戳 tod 阅读全文
posted @ 2020-11-12 09:49
c_b
阅读(689)
评论(0)
推荐(0)
摘要:
Pthon 将Excel读入List中 # 读取并处理 def readFromExcel(file_path): wb = openpyxl.load_workbook(file_path) sheet_list = wb.sheetnames ws = wb[sheet_list[0]] tot 阅读全文
posted @ 2020-11-12 09:48
c_b
阅读(224)
评论(0)
推荐(0)
摘要:
Python 将list写入Excel文件 # 把二维列表存入excel中 def writeToExcel(file_path, new_list): # total_list = [['A', 'B', 'C', 'D', 'E'], [1, 2, 4, 6, 8], [4, 6, 7, 9, 阅读全文
posted @ 2020-11-12 09:46
c_b
阅读(22112)
评论(0)
推荐(0)
摘要:
Python xls通过pandas转为xlsx # xls转换为xlsx def replace_excel(path, f): """ excel .xls 后缀 改成 .xlsx 后缀 path 文件夹路径 f 文件名字 带后缀 比如 aa.xls """ file_name_be, suff 阅读全文
posted @ 2020-11-12 09:43
c_b
阅读(2948)
评论(0)
推荐(0)
摘要:
Python银行数据分析之--工商银行个人数据 # 工商银行个人数据转换 def icbcPersonalBankProcessDo(t, companyName, accountingTitle, begin): t = t[7:] # 倒序输出 t.reverse() # 主体公司 会计科目 # 阅读全文
posted @ 2020-11-12 09:34
c_b
阅读(589)
评论(0)
推荐(0)
摘要:
pyhon 银行数据分析之 农商银行 # 北京农商银行一般户数据转换 def bjrcbBankProcessDo(t, companyName, accountingTitle, begin): t = t[5:] # 倒序输出 # t.reverse() # 主体公司 会计科目 # compan 阅读全文
posted @ 2020-11-12 09:32
c_b
阅读(221)
评论(0)
推荐(0)
摘要:
银行数据分析整理 # 银行明细整理 def bankTrans(): file_path = ".\\bk.xls" if os.path.exists(file_path): replace_excel(".", "bk.xls") os.unlink(file_path) file_path = 阅读全文
posted @ 2020-11-12 09:30
c_b
阅读(846)
评论(0)
推荐(0)
摘要:
Pyhon 数据操作方法 ` 数据库 链接到数据库 def connect(cdb="middb"): return sqlite3.connect(cdb) #:memory: # 数据库 关闭数据库 def close(self): self.conn.close() # 数据库 更改提交到数据 阅读全文
posted @ 2020-11-12 09:23
c_b
阅读(286)
评论(0)
推荐(0)

浙公网安备 33010602011771号