Skip to content

ValueError: Could not convert object to NumPy datetime #48679

@Supriyapattar123

Description

@Supriyapattar123

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs InfoClarification about behavior needed to assess issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions