Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_index_pe_history returns empty dataframe. #257

Open
devfinwiz opened this issue Sep 28, 2023 · 0 comments
Open

get_index_pe_history returns empty dataframe. #257

devfinwiz opened this issue Sep 28, 2023 · 0 comments

Comments

@devfinwiz
Copy link

def dataset_generator(indice):  
    history_filename=r"Dataset\Resultant Dataset\\nse_indices_pe_dataset\{}.csv".format(indice)  
    f=open(history_filename,'w',newline="")

    indice_pe = get_index_pe_history(symbol="{}".format(indice),
                                    start=datetime.datetime(2023,1,1),
                                    end=datetime.datetime(2023,2,17))
    print(indice_pe)

gives:

Index: []
Empty DataFrame
Columns: [P/E, P/B, Div Yield]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant