Open jgolec-bda opened 2 months ago
I believe the issue is with the dataframe you are sending. Can you post most of the error and a print of your dataframe?
Robert Grzesik 347-635-3416
On Wed, May 29, 2024 at 5:28 PM jgolec-bda @.***> wrote:
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' )
— Reply to this email directly, view it on GitHub https://github.com/Lumiwealth/quantstats_lumi/issues/36, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIYQK37P4S7LVAGZK4Z5E3ZEZCA5AVCNFSM6AAAAABIPXF33WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMZDIMRXG44TOMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
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.
I am getting this error when trying to create a report with the following code: