urazakgul / isyatirimhisse

https://pypi.org/project/isyatirimhisse/
MIT License
101 stars 14 forks source link

get_data function returns dictionary, not dataframe! #16

Open erogluegemen opened 5 months ago

erogluegemen commented 5 months ago

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)