exchange_calendars icon indicating copy to clipboard operation
exchange_calendars copied to clipboard

Getting AttributeError: 'NoneType' object has no attribute 'total_seconds' requesting calendar for XNYS

Open chadale opened this issue 1 year ago • 1 comments

following code (jupyterhub notebook):

import pandas as pd import numpy as np from datetime import datetime, date, timedelta import exchange_calendars as xcals xnys = xcals.get_calendar('XNYS')

Get following error: AttributeError: 'NoneType' object has no attribute 'total_seconds'

Full trace in file attached.

CalendarErrors.txt

chadale avatar Jun 20 '24 15:06 chadale

Hi @chadale, I'm unable to replicate this error. If you're not already using the latest version of exchange_calendars(?) could you try upgrading and see if that fixes it. If that doesn't work then I'd suggest upgrading the dependencies to the latest versions. Let us know if none of that does the trick.

maread99 avatar Jun 24 '24 17:06 maread99