摘要: df_merge = data2.groupby('唯一值').agg({'序号': ';'.join} 阅读全文
posted @ 2021-11-02 11:39 mollyliu 阅读(286) 评论(0) 推荐(0)
摘要: data1.rename(columns=lambda x:x.replace('(','('), inplace=True) 阅读全文
posted @ 2021-10-08 15:46 mollyliu 阅读(1246) 评论(0) 推荐(0)
摘要: 1、筛选用法 loc、where • orgin_excel.loc[(orgin_excel['投资时间'].astype(str) <'2020-10-01')&(orgin_excel['数据状态'].isnull())&(orgin_excel['数据源'].str.contains('调研 阅读全文
posted @ 2021-09-30 16:24 mollyliu 阅读(171) 评论(0) 推荐(0)
摘要: (str.startswith('关键字') is True:以关键字开头 False:不以关键字开头 还可以指定关键字所处位置: #!/usr/bin/python str = "this is string example....wow!!!"; print str.startswith( 't 阅读全文
posted @ 2021-06-30 13:30 mollyliu 阅读(237) 评论(1) 推荐(0)