摘要: [fineBI帮助文档](https://help.fanruan.com/finebi/) 阅读全文
posted @ 2023-07-24 17:44 soccerchen 阅读(6) 评论(0) 推荐(0)
摘要: [Python官方文档](https://docs.python.org/zh-cn/3/tutorial/index.html) [Numpy使用手册](https://numpy.org/doc/stable/user/) [matplotlib使用手册](https://matplotlib. 阅读全文
posted @ 2023-07-24 13:34 soccerchen 阅读(16) 评论(0) 推荐(0)
摘要: [架构师 - 通用方法(2)](https://mp.weixin.qq.com/s/muTCQdth8uKoysCArUsXjA) 阅读全文
posted @ 2023-07-24 13:32 soccerchen 阅读(8) 评论(0) 推荐(0)
摘要: 这里讲两个函数的用法:__doc__和__annotations__ 假设我写了如下的函数: def f(ham: str, eggs: str = 'eggs') -> str: '1254' '5234' print("Annotations:", f.__annotations__) prin 阅读全文
posted @ 2023-07-23 15:54 soccerchen 阅读(18) 评论(0) 推荐(0)
摘要: #官方给出的格式要求如下,其实不需要有两个或两个以上的参数,一个a也是可以的lambda a, b: a+b#官方给出的例子 >>> def make_incrementor(n): ... return lambda x: x + n ... >>> f = make_incrementor(42 阅读全文
posted @ 2023-07-23 15:44 soccerchen 阅读(26) 评论(0) 推荐(0)
摘要: 一、基本参数使用方法 如下的代码大家应该都见过: def func1(n): if n <= 0: print('请输入一个整数!') func1(int(input())) elif n <= 2: return 1 else: return func1(n-1)+func1(n-2) 这个是是一 阅读全文
posted @ 2023-07-22 16:59 soccerchen 阅读(169) 评论(0) 推荐(0)
摘要: 分成三种类型:状态表、流水表、配置表 状态表 比如账户表、用户表、订单表,记录账户额度,使用金额,订单当前流转状态,这些数据通常很大,但是又不会所有的数据都更新,因此使用增量更新的方式获取数据并更新数仓里对应的数据表。 一般会使用快照表的方式展示。很少用到拉链表的形式。 流水表 比如出入账记录表,点 阅读全文
posted @ 2023-06-25 16:29 soccerchen 阅读(157) 评论(0) 推荐(0)
摘要: 本篇随笔讲一下split()和split_part() 1、split函数 split(<str>, <pat>, [<trimTailEmpty>])参数1是一个string参数2要注意是一个正则表达式,不是string(这也是本次遇到小坑的地方)参数3不常用,true是默认值,如果解析"a,b, 阅读全文
posted @ 2023-06-16 18:23 soccerchen 阅读(21) 评论(0) 推荐(0)
摘要: 比如字段var1,值是'{"a":{"b":{"c":1,"d":2}}}' 大家都知道用get_json_object(var1,'$.a')可以得到'{"b":{"c":1,"d":2}}',如果要继续下挖,不需要get_json_object函数一直套 可以直接按这个写法:get_json_o 阅读全文
posted @ 2023-06-14 19:39 soccerchen 阅读(1575) 评论(0) 推荐(0)
摘要: -- ********************************************************************-- -- author:xujinchen -- create time:2023-06-14 17:51:04 -- ****************** 阅读全文
posted @ 2023-06-14 19:26 soccerchen 阅读(31) 评论(0) 推荐(0)