|
let 源 = Web.BrowserContents("ewealth.abchina.com/fs/default_netvalue/jingzhi_kf/default.htm?w=NYJX2371"), #"从 Html 中提取的表" = Html.Table(源, {{"Column1", "TABLE > * > TR > TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(5), TABLE > * > TR > TD[colspan=""3""]:not([rowspan]):nth-child(1):nth-last-child(1)"}, {"Column2", "TABLE > * > TR > TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(5) + TD:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(4), TABLE > * > TR > TD[colspan=""3""]:not([rowspan]):nth-child(1):nth-last-child(1)"}, {"Column3", "TABLE > * > TR > TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(5) + TD:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(4) + TD:not([colspan]):not([rowspan]):nth-child(3):nth-last-child(3), TABLE > * > TR > TD[colspan=""3""]:not([rowspan]):nth-child(1):nth-last-child(1)"}, {"Column4", "TABLE > * > TR > TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(5) + TD:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(4) + TD:not([colspan]):not([rowspan]):nth-child(3):nth-last-child(3) + TD:not([colspan]):not([rowspan]):nth-child(4):nth-last-child(2)"}, {"Column5", "TABLE > * > TR > TD:not([colspan]):not([rowspan]):nth-child(1):nth-last-child(5) + TD:not([colspan]):not([rowspan]):nth-child(2):nth-last-child(4) + TD:not([colspan]):not([rowspan]):nth-child(3):nth-last-child(3) + TD:not([colspan]):not([rowspan]):nth-child(4):nth-last-child(2) + TD:not([colspan]):not([rowspan]):nth-child(5):nth-last-child(1)"}}, [RowSelector="TABLE > * > TR"]), 提升的标题 = Table.PromoteHeaders(#"从 Html 中提取的表", [PromoteAllScalars=true]), 更改的类型 = Table.TransformColumnTypes(提升的标题,{{"产品名称", type text}, {"日期", type text}, {"单位净值", type text}, {"近三月年化收益率", Percentage.Type}, {"成立以来年化收益率", Percentage.Type}}) in 更改的类型 |
评分
-
1
查看全部评分
-
|