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
Setting invalid freq against ndarray(dtype=int) should raise ValueError.
import numpy as np
import pandas as pd
pd.DatetimeIndex(np.array([pd.Timestamp('2011-01-01').value, pd.Timestamp('2011-01-03').value]), freq='D')
# ValueError: Inferred frequency None from passed dates does not conform to passed frequency D
sinhrks
changed the title
BUG: DatetimeIndex creation inconsistencies between list and ndarray
ERR: DatetimeIndex creation inconsistencies between list and ndarray
Nov 13, 2015
Setting invalid freq against ndarray(dtype=int) should raise
ValueError
.There seems to be 2 issues:
1. invalid frequency may set if
data
is list2. ndarray
data
may raise unclear error messageThe text was updated successfully, but these errors were encountered: