11 2020 档案
摘要:Python银行数据分析之--民生银行数据转换 # 民生银行数据转换 def cmbcBankProcessDo(t, companyName, accountingTitle, begin): t = t[4:] # 倒序输出 # t.reverse() # 主体公司 会计科目 # company
阅读全文
摘要:Python银行数据分析之--农业银行数据转换 # 农业银行数据转换 def abcBankProcessDo(t, companyName, accountingTitle, begin): t = t[3:] # 倒序输出 t.reverse() # 主体公司 会计科目 # companyNam
阅读全文
摘要:批量付款导入明细数据分析整理 核销下载表导入数据转换 # 批量付款导入明细整理 def payTransform(): if os.path.exists(".\\1.xls"): replace_excel(".", "1.xls") os.unlink("1.xls") file_path =
阅读全文
摘要:托运单修改数据转换 # 修改数据转换 def modifyProcessDo(t, type1, dateInput, downloadTime, companyName): new_list = [] n = 0 new_list.append( ["主键", "托运时间", "改单时间", "运
阅读全文
摘要:损益数据转换分析整理 # 损益数据转换 def plProcessDo(t, type=0): new_list = [] n = 0 # 序号 运单号 账款单位 对账项目 客户项目 对方单号 计费项目 计费单位 计费单价 计费数量 最低收费 备注 借方金额 贷方金额 金额验证 对应表金额 辅助收入
阅读全文
摘要:微信数据转换 分析提取微信零钱数据 # 微信数据转换 def wxProcessDo(total_list, begin, companyName, accountingTitle): # 期初22.55 期末余额 421.65 total_list = total_list[17:] # 倒序输出
阅读全文
摘要:读取托运单内容合并到汇总改单列表 # 读取托运单内容合并到汇总改单列表 def changeMergeToBill(t, d): # 遍历改单数据 for i in range(len(t)): # 第一行不变 if i == 0: continue # 按照运单号查找运单资料,空值读取原数据 fo
阅读全文
摘要:改单列表合并为一条 # 改单列表合并为一条 def changeBillMerge(t): # 按主键第一顺序 时间第二顺序 倒序排序 t = sorted(t, key=(lambda x: [x[0], x[7]]), reverse=True) new_list = [] new_list.a
阅读全文
摘要:序号更正 & 余额金额连续性验证 # 序号更正 & 余额金额连续性验证 def updateNumberAndBalanceContinuityVerify(t): # 序号更正 for i in range(len(t)): if i != 0: if t[i][14] != t[i - 1][1
阅读全文
摘要:excel时间转python时间 # excel时间转python时间 def date(dates, t=0): # 定义转化日期戳的函数,dates为日期戳 delta = timedelta(days=dates) # 将1899-12-30转化为可以计算的时间格式并加上要转化的日期戳 tod
阅读全文
摘要:Pthon 将Excel读入List中 # 读取并处理 def readFromExcel(file_path): wb = openpyxl.load_workbook(file_path) sheet_list = wb.sheetnames ws = wb[sheet_list[0]] tot
阅读全文
摘要: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,
阅读全文
摘要:Python xls通过pandas转为xlsx # xls转换为xlsx def replace_excel(path, f): """ excel .xls 后缀 改成 .xlsx 后缀 path 文件夹路径 f 文件名字 带后缀 比如 aa.xls """ file_name_be, suff
阅读全文
摘要:Python银行数据分析之--工商银行个人数据 # 工商银行个人数据转换 def icbcPersonalBankProcessDo(t, companyName, accountingTitle, begin): t = t[7:] # 倒序输出 t.reverse() # 主体公司 会计科目 #
阅读全文
摘要:pyhon 银行数据分析之 农商银行 # 北京农商银行一般户数据转换 def bjrcbBankProcessDo(t, companyName, accountingTitle, begin): t = t[5:] # 倒序输出 # t.reverse() # 主体公司 会计科目 # compan
阅读全文
摘要:银行数据分析整理 # 银行明细整理 def bankTrans(): file_path = ".\\bk.xls" if os.path.exists(file_path): replace_excel(".", "bk.xls") os.unlink(file_path) file_path =
阅读全文
摘要:Pyhon 数据操作方法 ` 数据库 链接到数据库 def connect(cdb="middb"): return sqlite3.connect(cdb) #:memory: # 数据库 关闭数据库 def close(self): self.conn.close() # 数据库 更改提交到数据
阅读全文

浙公网安备 33010602011771号