class documentation

class TestTimeScalars:

View In Hierarchy

Undocumented

Method test​_coercion​_assignment​_datetime Undocumented
Method test​_coercion​_assignment​_timedelta Undocumented
Method test​_coercion​_basic Undocumented
Method test​_coercion​_timedelta​_convert​_to​_number Undocumented
@pytest.mark.parametrize('dtype', ['S6', 'U6'])
@pytest.mark.parametrize(['val', 'unit'], [param(123, 's', id='[s]'), param(123, 'D', id='[D]')])
def test_coercion_assignment_datetime(self, val, unit, dtype):

Undocumented

@pytest.mark.parametrize(['val', 'unit'], [param(123, 's', id='[s]'), param(123, 'D', id='[D]')])
def test_coercion_assignment_timedelta(self, val, unit):

Undocumented

@pytest.mark.parametrize('dtype', [np.int64, np.float32])
@pytest.mark.parametrize('scalar', [param(np.timedelta64('NaT', 's'), id='timedelta64[s](NaT)'), param(np.timedelta64(123, 's'), id='timedelta64[s]'), param(np.datetime64('NaT', 'generic'), id='datetime64[generic](NaT)'), param(np.datetime64(1, 'D'), id='datetime64[D]')])
def test_coercion_basic(self, dtype, scalar):

Undocumented

@pytest.mark.parametrize('dtype', [np.int64, np.float32])
@pytest.mark.parametrize('scalar', [param(np.timedelta64(123, 'ns'), id='timedelta64[ns]'), param(np.timedelta64(12, 'generic'), id='timedelta64[generic]')])
def test_coercion_timedelta_convert_to_number(self, dtype, scalar):

Undocumented