pandas转化成小时筛选数据x1[hour]pd.to_datetime(x1[时间段])x1[hour]x1[hour].dt.strftime(%H)x1[hour]pd.to_numeric(x1[hour])x2x1[x1[hour]12]x3 x1[x1[hour] 12]