matplotlib.financeでローソク足 データの作成 ランダムウォークで架空の為替チャートを作成します。 import numpy as np import pandas as pd def randomwalk(periods=None, start=None, end=None, freq='B', tz=None, normalize=False, name=None, closed=None, tick=1, **kwargs): """Returns random up/down pandas Series. Usage: ``` import datetime randomwalk(100) # Returns +-1up/down 100days from now. randomwalk(100, freq='H') # Returns +-1up/down 100