I'm using this code, straight from the scikit-learn page. It creates a dictionary:
symbol_dict = {
'TOT': 'Total',
'XOM': 'Exxon',
'CVX': 'Chevron',}
symbols, names = np.array(symbol_dict.items()).T
But I get an error:
TypeError: iteration over a 0-d array
This code is straight from the example code, so I have no idea what's going wrong.