python xlwing関数 指定した標準偏差と中央値で、任意の行・列数のデータを作成する mshmura
python の関数
myproject.py
import xlwings as xw
import numpy as np
@xw.func
@xw.ret(expand = "table")
def randstd(mean, std, rows, columns):
return np.random.normal(mean, std, (int(rows), int(columns)))
excel設定
1.上部の 「UDF MODULEs:」 のところに上記のpythonファイル名(myproject)を入れる。
(※myprojectはexcelファイルと同じフォルダに入っていると仮定)
適当なセルに、任意の中央値、標準偏差、テーブルの行数、列数を書き込む。
下記のように関数を入れる。
結果
以上。
Author And Source
この問題について(python xlwing関数 指定した標準偏差と中央値で、任意の行・列数のデータを作成する mshmura), 我々は、より多くの情報をここで見つけました https://qiita.com/msh/items/a5d6f0b813d1d5cc5ab4著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .