我正在为一个项目使用一些开放数据,时间字段被格式化为介于1和2400之间的整数.我怎么把这个时间转换成正常时间?
(我在这个项目中使用Power Bi.)
https://www.kaggle.com/datasets/usdot/flight-delays?resource=download&select=flights.csv个
我正在为一个项目使用一些开放数据,时间字段被格式化为介于1和2400之间的整数.我怎么把这个时间转换成正常时间?
(我在这个项目中使用Power Bi.)
https://www.kaggle.com/datasets/usdot/flight-delays?resource=download&select=flights.csv个
comments 中写道:
这些列似乎是小时和分钟的格式-HHMM.0007为上午12时07分,23时15分为晚上11时15分
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjAwMFeK1YlWMjI2NFWKjQUA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
#"Added Custom" = Table.AddColumn(Source, "Custom", each Time.FromText([Column1],[Format = "HHmm", Culture = "en-GB"]), type time)
in
#"Added Custom"