Build columns only for dataframe output
parent
bcaef70612
commit
9b34aac0fd
|
@ -96,9 +96,9 @@ def quote(loglevel, broker, tickers, df_output):
|
|||
log.error(f"No quotes could be found for {tickers}?")
|
||||
return
|
||||
|
||||
if df_output:
|
||||
cols = next(filter(bool, quotes.values())).copy()
|
||||
cols.pop('symbol')
|
||||
if df_output:
|
||||
df = pd.DataFrame(
|
||||
(quote or {} for quote in quotes.values()),
|
||||
index=quotes.keys(),
|
||||
|
|
Loading…
Reference in New Issue