![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
π僧
这个作者很懒,什么都没留下…
展开
-
给re.findall补充匹配位置的自定义函数
给re.findall补充一个获取所有匹配位置的自定义函数spanall原创 2022-05-19 11:19:44 · 255 阅读 · 0 评论 -
np.where在pandas中灵活应用如excel的if
import pandas as pd from numpy import where as iif d = { '客户名称':['A','B','A','B'], '产品编码':['x', 'y', 'x','y'], '发货数量':[10,20,30,40], '发货日期':['20220101','20220331','20220530','20221231'], } df=pd.DataFrame(d) df['.原创 2022-03-27 10:15:15 · 2205 阅读 · 0 评论