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

bug in pandas_market_calendars 4.0 #201

Closed
brettelliot opened this issue Sep 6, 2022 · 2 comments
Closed

bug in pandas_market_calendars 4.0 #201

brettelliot opened this issue Sep 6, 2022 · 2 comments

Comments

@brettelliot
Copy link

Hi all,

Attempting to test out lumibot but can't get the getting started backtest to work. With a fresh venv of python 3.9.13 and after a pip install lumibot I run the sample code in the getting started guide. I get this error:

ValueError: cannot reindex on an axis with duplicate labels

On line 42 of helpers.py:

days = nyse.schedule(start_date="1950-01-01", end_date=today)

It seems like this is a known issue of pandas_market_calendars 4.0 and is fixed in 4.0.1. However, 4.0.1 doesn't exist on pypi and 4.0 seems to be a hardcoded dependency.

rsheftel/pandas_market_calendars#215

Can anyone help me get lumibot installed? Wouldn't this issue impact fresh deployments of pre-existing users?

Thanks,
Brett

@grzesir
Copy link
Contributor

grzesir commented Sep 7, 2022

Yes currently v4.0 has bugs. You need to downgrade to v3.6. We will add this to Lumibot by default soon

pip uninstall pandas_market_calendars
pip install pandas_market_calendars==3.6

@grzesir
Copy link
Contributor

grzesir commented Aug 18, 2023

fixed in pandas_market_calendars v4.1.2

@grzesir grzesir closed this as completed Aug 18, 2023
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