get_data function returns dictionary, not dataframe!
Opened this issue · 0 comments
erogluegemen commented
This is the sample code in the README file:
financials = Financials()
df = financials.get_data(
symbols='THYAO',
start_year='2020'
)
print(df)
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)