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_data function returns dictionary, not dataframe! #16

Open
erogluegemen opened this issue Apr 24, 2024 · 1 comment
Open

get_data function returns dictionary, not dataframe! #16

erogluegemen opened this issue Apr 24, 2024 · 1 comment

Comments

@erogluegemen
Copy link

This is the sample code in the README file:

financials = Financials()

df = financials.get_data(
    symbols='THYAO',
    start_year='2020'
)
print(df)

Output:

output

We can solve the problem basically with one additional line, here is the corrected version:

financials = Financials()

data = financials.get_data(
    symbols='THYAO',
    start_year='2020'
)
df = pd.DataFrame(data['THYAO'])
print(df)
@gunhantekin
Copy link

Bazı hisselerde 5-6 günde bir fiyat bilgisi geliyor. Örneğin turex hissesine bakarsanız böyle bir problem var. Birkaç hissede daha denk geldim. Yfinance ile karşılaştırdım, onlarda düzgün geliyor.
turex.xlsx

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

2 participants