module documentation
Undocumented
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test_fast |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Currently, for astype strings are cast to booleans effectively by calling bool(int(string) . This is not consistent (see gh-9875) and will eventually be deprecated. |
Function | test |
These currently error out, since cast to integers fails, but should not error out in the future. |
Function | test |
Undocumented |
@pytest.mark.parametrize( 'dt', [ 'S', 'U'])
def test_array_astype_to_string_discovery_empty(dt): (source) ¶
def test_array_astype_to_string_discovery_empty(dt): (source) ¶
Undocumented
@pytest.mark.parametrize( 'dt', [ 'd', 'f', 'S13', 'U32'])
def test_array_astype_to_void(dt): (source) ¶
def test_array_astype_to_void(dt): (source) ¶
Undocumented
@pytest.mark.parametrize( 't', (np.sctypes[ 'uint']+np.sctypes[ 'int'])+np.sctypes[ 'float'])
def test_array_astype_warning(t): (source) ¶
def test_array_astype_warning(t): (source) ¶
Undocumented
@pytest.mark.parametrize( 'a', ( np.array( 2), np.array( [ 3, 2, 7, 0]), np.arange(6).reshape( 2, 3)))
def test_fastCopyAndTranspose(a): (source) ¶
def test_fastCopyAndTranspose(a): (source) ¶
Undocumented
@pytest.mark.parametrize( [ 'shape', 'fill_value', 'expected_output'], [ ( ( 2, 2), [ 5.0, 6.0], np.array( [ [ 5.0, 6.0], [ 5.0, 6.0]])), ( ( 3, 2), [ 1.0, 2.0], np.array( [ [ 1.0, 2.0], [ 1.0, 2.0], [ 1.0, 2.0]]))])
def test_full_from_list(shape, fill_value, expected_output): (source) ¶
def test_full_from_list(shape, fill_value, expected_output): (source) ¶
Undocumented
@pytest.mark.parametrize( 'dtype', np.typecodes[ 'AllFloat'])
def test_none_to_nan_cast(dtype): (source) ¶
def test_none_to_nan_cast(dtype): (source) ¶
Undocumented
@pytest.mark.parametrize( [ 'dtype', 'out_dtype'], [ ( np.bytes_, np.bool_), ( np.unicode_, np.bool_), ( np.dtype( 'S10,S9'), np.dtype( '?,?'))])
def test_string_to_boolean_cast(dtype, out_dtype): (source) ¶
def test_string_to_boolean_cast(dtype, out_dtype): (source) ¶
Currently, for astype
strings are cast to booleans effectively by
calling bool(int(string)
. This is not consistent (see gh-9875) and
will eventually be deprecated.
@pytest.mark.parametrize( [ 'dtype', 'out_dtype'], [ ( np.bytes_, np.bool_), ( np.unicode_, np.bool_), ( np.dtype( 'S10,S9'), np.dtype( '?,?'))])
def test_string_to_boolean_cast_errors(dtype, out_dtype): (source) ¶
def test_string_to_boolean_cast_errors(dtype, out_dtype): (source) ¶
These currently error out, since cast to integers fails, but should not error out in the future.