Skip to content

Commit 4f6c03e

Browse files
committed
Fix: is_float_dtypes and is_numeric_dtype wrong place
Fixed wrong location of is_float_dtypes and is_numeric_dtypes.
1 parent d3476c0 commit 4f6c03e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pandas/core/internals.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
is_datetime64tz_dtype,
2222
is_object_dtype,
2323
is_datetimelike_v_numeric,
24+
is_float_dtype, is_numeric_dtype,
2425
is_numeric_v_string_like, is_extension_type,
2526
is_list_like,
2627
is_re,
@@ -31,7 +32,6 @@
3132
_maybe_convert_string_to_object,
3233
_maybe_upcast,
3334
_maybe_convert_scalar, _maybe_promote,
34-
is_float_dtype, is_numeric_dtype,
3535
_infer_dtype_from_scalar,
3636
_soft_convert_objects,
3737
_possibly_convert_objects,

pandas/tests/tools/test_concat.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1933,8 +1933,8 @@ def test_concat_no_unnecessary_upcats(self):
19331933
objs.append(pdt(np.array([1], dtype=np.float16, ndmin=dims)))
19341934
self.assertTrue(pd.concat(objs).values.dtype == np.float64)
19351935

1936-
@parametrize('dtype', np.sctypes('float'))
1937-
@parametrize('klass', [Series, DataFrame, Panel])
1936+
@pytest.mark.parametrize('dtype', np.sctypes('float'))
1937+
@pytest.mark.parametrize('klass', [Series, DataFrame, Panel])
19381938
def test_concat_no_unnecessary_upcats_pytest(self, dtype, klass):
19391939
# GH 13247
19401940
for pdt in klass:

0 commit comments

Comments
 (0)