df/series.str.slice(start, stop, step) == df/series.str[start:stop:step] 但是在query中不允许后者写法!
ob_waim.df10.开票日期.str.slice(0,7) # 字符串格式列
ob_waim.df10.query("开票日期.str.slice(0,7) == '2023-01'") # 可以
ob_waim.df10.query("开票日期.str[0:7:] == '2023-01'") # 不可以
df/series.str.slice(start, stop, step) == df/series.str[start:stop:step] 但是在query中不允许后者写法!
ob_waim.df10.开票日期.str.slice(0,7) # 字符串格式列
ob_waim.df10.query("开票日期.str.slice(0,7) == '2023-01'") # 可以
ob_waim.df10.query("开票日期.str[0:7:] == '2023-01'") # 不可以
暂无评论
2023-12-12
2023-12-12
2023-12-12
2023-12-12
2023-12-12
2023-12-12
2023-12-12
2023-12-12
2023-12-12
2023-12-12
2024-03-28
2024-03-13
2024-03-11
2024-03-02
2024-02-27
2024-02-22
2024-02-22
2024-02-20
2024-02-19
2024-02-19
2024-02-19
2024-02-19
2024-01-22
2024-01-21
2024-01-15
2024-01-12
2023-12-29
2023-12-29
2023-12-25