File "/Users/lazarinastoy/.local/lib/python3.8/site-packages/streamlit/script_runner.py", line 350, in _run_script
exec(code, module.__dict__)File "/Users/lazarinastoy/Desktop/pytrendstest/streamlit_app.py", line 149, in <module>
pytrend.get_historical_interest(kw_list,year_start=year_from, month_start=month_from, day_start=day_from, year_end=year_to, month_end=month_to, day_end=day_to)File "/Users/lazarinastoy/.local/lib/python3.8/site-packages/pytrends/request.py", line 490, in get_historical_interest
df = pd.DataFrame()
I actually found out the resolution to this query, so I’ve not graduated to another type of error (LOL), will update the resolution and close this topic down. Will keep you posted with my code, if any help is needed, I’m chipping away at it slowly but surely.
Thanks Again.
For those interested: The error was that the pytrends api returns a df object as a response to the get_hisotrical_interest() function (indicated by the last row in the error log).
This needs to be wrapped up in a st.dataframe() when called in the web app.