-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Description
Research
-
I have searched the [pandas] tag on StackOverflow for similar questions.
-
I have asked my usage related question on StackOverflow.
Link to question on StackOverflow
ValueError Traceback (most recent call last) in 33 vac_strt_end = [vdf.loc[vdf['CAREGIVERID'] == cg]["START_DATE"], vdf.loc[vdf['CAREGIVERID'] == cg]["END_DATE"]] 34 if not(vac_strt_end[0].empty) and not(vac_strt_end[1].empty) : ---> 35 vac_days = np.arange(vac_strt_end[0], vac_strt_end[1], dtype = 'datetime64[D]') 36 for d in np.union1d( schedule_days, vac_days): 37 idx = np.where(d = schedule_days)[0] ValueError: Could not convert object to NumPy datetime
Question about pandas
ValueError Traceback (most recent call last)
in
33 vac_strt_end = [vdf.loc[vdf['CAREGIVERID'] == cg]["START_DATE"], vdf.loc[vdf['CAREGIVERID'] == cg]["END_DATE"]]
34 if not(vac_strt_end[0].empty) and not(vac_strt_end[1].empty) :
---> 35 vac_days = np.arange(vac_strt_end[0], vac_strt_end[1], dtype = 'datetime64[D]')
36 for d in np.union1d( schedule_days, vac_days):
37 idx = np.where(d = schedule_days)[0]
ValueError: Could not convert object to NumPy datetime