Skip to main content

pandas

可使用 pd 存取 pandas

範例

使用 Series

exchange, pair, base, quote = CA.get_exchange_pair()
candle = candles[exchange][pair][0]
data = {
'name': ['open', 'high', 'low', 'close'],
pair: [candle['open'], candle['high'], candle['low'], candle['close']],
}
df = pd.DataFrame(data)
Log(str(df.at[1, pair]))