Newb Problem with get_column Error/Warning
See original GitHub issueNew to pandas-ta & not a programmer by profession
Any help or suggestions would be appreciated. I have the following 1 line of code below that is utilizing vwma. I’ve checked the output mathematics in Excel & it appears to be working fine, but I’m getting a long series of the Error below. Searching others issues here, I gather that it’s the ‘def _get_column’ that’s being triggered. I’m not sure why it’s looking for a column when I’ve specified them below and confirmed that it is indeed using them to calculate?? I also checked the ‘_average’ (price) & ‘_volume’ columns referenced below & confirmed there are no ‘na’ values in the series.
Any help would be appreciated. It’s cluttering up my Jupyter notebook. Couldn’t find a way to suppress the warning/error message either??
for num in vwap_nums:
#generates issues below, but doesn't seem to effect anything
feat_df[symb + '_VWAP_' + str(num)] = feat_df.ta.vwma(close=symb + '_average', volume=symb + '_volume', offset=0, length=num)
Error:
`[X] Ooops!!!: It's True, the series 'volume' was not found in index, date, day_dt, dayofweek, max_time`
…(continues on listing all columns in the dataframe)
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Perfect! Thank You On a side note, I was getting small, couple cent differences on $100 stocks between Excel and pandas-ta vwma when there were errors/warnings. Figured it was rounding, but now all values are difference of exactly 0. Guess that’s why one shouldn’t ignore errors 😃
Excellent! Thanks for letting me know.
That’s weird you were getting cent differences on $100 stocks versus Excel. No numerical transformations are performed after an indicator is returned. But thanks for the potential heads up.
Thanks, KJ