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