pandas
Use pd
to access [pandas] function. (https://pandas.pydata.org)
Exampleβ
Use pandas series data frame.
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]))