Jan-18-2020, 02:30 PM
I'm getting the following:
KeyError: 0
It starts with the following
97, in get_loc
return self._engine.get_loc(key)
KeyError: 0
It starts with the following
97, in get_loc
return self._engine.get_loc(key)
How do you put quotations around a result from a for loop?
|
Jan-18-2020, 02:30 PM
I'm getting the following:
KeyError: 0 It starts with the following 97, in get_loc return self._engine.get_loc(key)
Jan-18-2020, 02:31 PM
please, post full traceback in error tags
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link Create MCV example Debug small programs
Hi buran, I apologize (I'm a newb and have much to learn).
This is the entire respose:
Jan-18-2020, 02:37 PM
import pandas as pd df = pd.read_csv('Stocks.csv', delimiter=',') for ticker in df['Symbol']: results = si.get_quote_table(ticker, dict_result=False) results.to_csv('Stockdata.csv', index=False)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link Create MCV example Debug small programs
Jan-18-2020, 02:46 PM
THANK YOU BURAN! THAT WORKED!!:)
|
|