You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importpandasaspdimporttrading_calendarsastcimportpandas_market_calendarsaspmcdefmethod_comparison(tc_methods, pmc_methods):
# must be an easier way to do thistc_col=tc_methods.copy()
pmc_methods_set=set(pmc_methods)
pmc_col, pmc_only= [], []
formethodintc_col:
ifmethodinpmc_methods_set:
pmc_col.append(method)
else:
pmc_col.append(None)
pmc_only=list(pmc_methods_set-set(pmc_col))
pmc_col.extend(pmc_only)
tc_col.extend([Nonefor_inpmc_only])
returnpd.DataFrame(
{'trading_calendars': tc_col, 'pandas_market_calendars': pmc_col}
)
re rsheftel/pandas_market_calendars#41
Calendar level differences
Module level differences
The text was updated successfully, but these errors were encountered: