2023-11-01から1ヶ月間の記事一覧

Flourishの基本的な使い方:棒グラフを作る

note.com

PHPダウンロード

Excelで玉川ダムの貯水率を取得する

玉川ダムの貯水率 = Table.TransformColumnTypes(#"HTML から抽出されたテーブル",{{"Column1", type text}, {"Column2", type number}, {"Column3", type number}, {"Column4", type number}, {"Column5", Int64.Type}, {"Column6", type number}, {"Column…

特殊ソート

name AA-10 AA-9 10 9 10a 09a A10a-2 A9a-3 df0 = xl("A1:A9", headers=True) # 数字と文字を分割 df1 = df0["name"].astype(str).str.split("(\d+)", regex=True, expand=True) # 0補完 df2 = df1.iloc[:, 1::2].apply(lambda s: s.str.zfill(s.fillna("")…

Excel での Python の概要

support.microsoft.com 例 1 では、Python plus 演算子を使用して、3 つのテキスト フラグメントから "Hello World" を生成します。 =PY('Hello' + ' ' + 'World',0) 例 2 では、 xl() 関数を使用して Table1 からデータを取得し、その結果を Python オブジ…