Search code examples
pythonpycharm

Python script does not display anyoutput in pycharm


I am using the below code in pycharm:-

from nsepy import get_history
from datetime import date
import pandas


start_date=date(2021, 5,1)
end_date=date.today()

df = get_history(symbol='SBIN' ,start=start_date, end=end_date )
print(df)

However it does not display anything in pycharm.


Solution

  • Can confirm that copying and pasting your code returns data in the console as you can see below. I suspect you are running another script/tab when you click run in PyCharm.

    enter image description here