Pythonã§ã·ã¹ãã¬ã®ããã¯ãã¹ã¶移åå¹³å交差ã·ã¹ãã ãã以ä¸ã®æ¥è¶³ãã¼ã¿ã使ã£ã¦ããã¯ãã¹ããã¦ã¿ã¾ãã %matplotlib inline import numpy as np import pandas as pd import matplotlib.pyplot as plt # dfã®ãã¼ã¿ããtfã§æå®ããã¿ã¤ã ãã¬ã¼ã ã®4æ¬è¶³ãã¼ã¿ãä½æããé¢æ° def TF_ohlc(df, tf): x = df.resample(tf).ohlc() ret = pd.DataFrame({'Open': x['Open']['open'], 'High': x['High']['high'], 'Low': x['Low']['low'], 'Close': x['Close']['close']}, columns=['Open','High','Low','Close'])
{{#tags}}- {{label}}
{{/tags}}