2022年9月30日

Python 时间转化

摘要: 1、字符串转datetime from datetime import datetime, timedelta time_a = datetime.strptime('2022-09-03 20:31:10', "%Y-%m-%d %H:%M:%S") 2、datetime转字符串 str_time 阅读全文

posted @ 2022-09-30 17:44 滚动的蛋 阅读(30) 评论(0) 推荐(0) 编辑

Python dataframe 处理记录

摘要: 1、分组求和 import pandas as pd from datetime import datetime, timedelta data = pd.DataFrame({ "company": ["A", "A", "A", "A", "A", "A", "A", "A", "A", "A" 阅读全文

posted @ 2022-09-30 17:40 滚动的蛋 阅读(62) 评论(0) 推荐(0) 编辑

导航