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

TypeError: Index(...) must be called with a collection of some kind, 'Strategy' was passed #36

Open
jgolec-bda opened this issue May 29, 2024 · 2 comments

Comments

@jgolec-bda
Copy link

I am getting this error when trying to create a report with the following code:

qs.reports.html(
    returns,
    "BTC-USD"
    title="Strategy", 
    compounded=False, 
    download_filename='strategy_tearsheet.html'
)
@grzesir
Copy link
Contributor

grzesir commented May 29, 2024 via email

@yul
Copy link

yul commented Jun 21, 2024

I got the same error, my dataframe has a single column "returns" (column name doesn't seem to matter).
If I extract this column series, it works, my code is this:

    qs.reports.html(
        df["returns"],
        compounded=True,
        output='tearsheet.html'
    )

It would be helpful if you included in the README what input data is expected.

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

3 participants