Home
last modified time | relevance | path

Searched refs:find_common_type (Results 1 – 25 of 159) sorted by relevance

1234567

/dports/math/py-pandas/pandas-1.2.5/pandas/tests/dtypes/cast/
H A Dtest_find_common_type.py4 from pandas.core.dtypes.cast import find_common_type
63 assert find_common_type(source_dtypes) == expected_common_dtype
68 find_common_type([])
80 assert find_common_type(dtypes) == exp_type
85 assert find_common_type([dtype, dtype]) == "datetime64[ns, US/Eastern]"
99 assert find_common_type([dtype, dtype2]) == object
100 assert find_common_type([dtype2, dtype]) == object
105 assert find_common_type([dtype, dtype]) == "period[D]"
121 assert find_common_type([dtype, dtype2]) == object
122 assert find_common_type([dtype2, dtype]) == object
/dports/math/py-numpy/numpy-1.20.3/numpy/typing/tests/data/pass/
H A Dnumerictypes.py26 np.find_common_type([], [np.int64, np.float32, complex])
27 np.find_common_type((), (np.int64, np.float32, complex))
28 np.find_common_type([np.int64, np.float32], [])
29 np.find_common_type([np.float32], [np.int64, np.float64])
/dports/math/py-numpy/numpy-1.20.3/numpy/typing/tests/data/fail/
H A Dnumerictypes.py13 np.find_common_type(np.int64, np.int64) # E: incompatible type "Type[signedinteger[Any]]"
/dports/math/py-numpy/numpy-1.20.3/numpy/core/tests/
H A Dtest_numerictypes.py340 res = np.find_common_type(['f4', 'f4', 'i2'], ['f8'])
344 res = np.find_common_type(['f4', 'f4'], ['i8'])
348 res = np.find_common_type(['f4', 'f4', 'i2'], ['c8'])
352 res = np.find_common_type(['u4', 'i4', 'i4'], ['f4'])
356 res = np.find_common_type(['u8', 'i8', 'i8'], ['f8'])
/dports/math/py-numpy/numpy-1.20.3/numpy/typing/tests/data/reveal/
H A Dnumerictypes.py18 reveal_type(np.find_common_type([np.int64], [np.int64])) # E: numpy.dtype
/dports/math/py-numpy/numpy-1.20.3/doc/source/reference/
H A Droutines.dtype.rst44 find_common_type
/dports/math/py-pandas/pandas-1.2.5/pandas/core/arrays/sparse/
H A Daccessor.py7 from pandas.core.dtypes.cast import find_common_type
332 dtype = find_common_type(self._parent.dtypes)
H A Ddtype.py385 return SparseDtype(np.find_common_type(np_dtypes, []), fill_value=fill_value)
/dports/math/py-numpy/numpy-1.20.3/numpy/core/
H A Dnumerictypes.pyi24 def find_common_type(
H A Dnumerictypes.py600 def find_common_type(array_types, scalar_types): function
/dports/math/py-pandas/pandas-1.2.5/pandas/core/dtypes/
H A Dconcat.py10 from pandas.core.dtypes.cast import find_common_type
145 target_dtype = find_common_type([x.dtype for x in to_concat])
H A Ddtypes.py599 from pandas.core.dtypes.cast import find_common_type
601 return find_common_type(non_cat_dtypes)
/dports/math/py-numpoly/numpoly-1.2.3/numpoly/array_function/
H A Dmultiply.py59 dtype = numpy.find_common_type([x1.dtype, x2.dtype], [])
/dports/math/py-pandas/pandas-1.2.5/pandas/core/ops/
H A Darray_ops.py18 find_common_type,
75 dtype = find_common_type([x.dtype, y.dtype])
/dports/math/py-numpoly/numpoly-1.2.3/numpoly/construct/
H A Dcompose.py64 dtype = numpy.find_common_type(dtypes, [])
/dports/math/py-numpy/numpy-1.20.3/numpy/lib/
H A Dindex_tricks.py10 from numpy.core.numerictypes import find_common_type, issubdtype
402 final_dtype = find_common_type(arraytypes, scalartypes)
/dports/science/py-geometer/geometer-0.2.3/geometer/
H A Dtransformation.py51 dtype = np.find_common_type([dtype, matrix.dtype], [])
H A Dcurve.py767 m = np.eye(center.shape[0], dtype=np.find_common_type([c.dtype, type(radius)], []))
838 m = np.eye(4, dtype=np.find_common_type([v.dtype, type(c)], []))
/dports/devel/zpu-gcc/zpu-toolchain-1.0/toolchain/gcc/gcc/ada/
H A Dutils2.c47 static tree find_common_type (tree, tree);
219 find_common_type (tree t1, tree t2) in find_common_type() function
460 tree type = find_common_type (TREE_TYPE (a1), TREE_TYPE (a2)); in compare_arrays()
719 == find_common_type (right_type, in build_binary_op()
734 && (best_type = find_common_type (left_type, right_type)) != 0) in build_binary_op()
/dports/devel/zpu-binutils/zpu-toolchain-1.0/toolchain/gcc/gcc/ada/
H A Dutils2.c47 static tree find_common_type (tree, tree);
219 find_common_type (tree t1, tree t2)
460 tree type = find_common_type (TREE_TYPE (a1), TREE_TYPE (a2));
719 == find_common_type (right_type,
734 && (best_type = find_common_type (left_type, right_type)) != 0)
/dports/science/py-scikit-learn/scikit-learn-1.0.2/sklearn/preprocessing/
H A D_encoders.py602 dt = np.find_common_type([cat.dtype for cat in self.categories_], [])
972 dt = np.find_common_type([cat.dtype for cat in self.categories_], [])
/dports/science/py-scipy/scipy-1.7.1/scipy/sparse/
H A Dsputils.py44 upcast = np.find_common_type(args, [])
/dports/science/py-scipy/scipy-1.7.1/scipy/spatial/
H A Ddistance.py160 dtype = np.find_common_type([int], [u.dtype, v.dtype])
182 dtype = np.find_common_type([int], [u.dtype, v.dtype])
1412 dtype = np.find_common_type([int], [u.dtype, v.dtype])
/dports/science/py-scipy/scipy-1.7.1/scipy/stats/
H A D_distn_infrastructure.py1869 dtyp = np.find_common_type([x.dtype, np.float64], [])
1910 dtyp = np.find_common_type([x.dtype, np.float64], [])
1952 dtyp = np.find_common_type([x.dtype, np.float64], [])
1993 dtyp = np.find_common_type([x.dtype, np.float64], [])
2035 dtyp = np.find_common_type([x.dtype, np.float64], [])
2079 dtyp = np.find_common_type([x.dtype, np.float64], [])
/dports/math/py-pandas/pandas-1.2.5/pandas/core/arrays/
H A Dfloating.py68 np_dtype = np.find_common_type(

1234567