I have the csv file with the following content:
symbol,coingecko_id,cryptocompare_id,coinmarketcap_id,cryptowatch_id,coinapi_id
btc,bitcoin,btc,1,60,btc
eth,ethereum,eth,1027,77,eth
On using the following code:
with open(merged_file, encoding='utf8') as f:
data = dict(csv.DictReader(f))
print(data)
It gives error: ValueError: dictionary update sequence element #0 has length 6; 2 is required