trino新建带分区的外部表(trino命令)
def change_timedelta64_type(zeek_df):
# 时间间隔类型数据转浮点数
for column in zeek_df.columns:
if zeek_df[column].d*=='timedelta64[ns]':
lie = []
for onedel in zeek_df[column]:
onedel_new = onedel.total_seconds()
lie.append(onedel_new)
zeek_df[column] = lie
相关文章