2020年12月22日
摘要: 查找df 中存在某些字段,可以使用isin,但是没有not in ,我们可以这样实现 # IN count_df[count_df.reportno.isin(t_reportno)] # NOT IN count_df[~count_df.reportno.isin(t_reportno)] 其中 阅读全文
posted @ 2020-12-22 19:41 小小喽啰 阅读(1399) 评论(0) 推荐(0) 编辑
摘要: 我们很想有一个函数可以实现日期+n,就能得到日期n个月后的日期,比如说2020-12-10 +2 =2021-02-10,那么该如何实现: import datetime from dateutil.relativedelta import relativedelta if __name__ == 阅读全文
posted @ 2020-12-22 14:21 小小喽啰 阅读(719) 评论(0) 推荐(0) 编辑