/dports/math/py-pandas/pandas-1.2.5/pandas/tests/dtypes/cast/ |
H A D | test_find_common_type.py | 4 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 D | numerictypes.py | 26 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 D | numerictypes.py | 13 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 D | test_numerictypes.py | 340 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 D | numerictypes.py | 18 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 D | routines.dtype.rst | 44 find_common_type
|
/dports/math/py-pandas/pandas-1.2.5/pandas/core/arrays/sparse/ |
H A D | accessor.py | 7 from pandas.core.dtypes.cast import find_common_type 332 dtype = find_common_type(self._parent.dtypes)
|
H A D | dtype.py | 385 return SparseDtype(np.find_common_type(np_dtypes, []), fill_value=fill_value)
|
/dports/math/py-numpy/numpy-1.20.3/numpy/core/ |
H A D | numerictypes.pyi | 24 def find_common_type(
|
H A D | numerictypes.py | 600 def find_common_type(array_types, scalar_types): function
|
/dports/math/py-pandas/pandas-1.2.5/pandas/core/dtypes/ |
H A D | concat.py | 10 from pandas.core.dtypes.cast import find_common_type 145 target_dtype = find_common_type([x.dtype for x in to_concat])
|
H A D | dtypes.py | 599 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 D | multiply.py | 59 dtype = numpy.find_common_type([x1.dtype, x2.dtype], [])
|
/dports/math/py-pandas/pandas-1.2.5/pandas/core/ops/ |
H A D | array_ops.py | 18 find_common_type, 75 dtype = find_common_type([x.dtype, y.dtype])
|
/dports/math/py-numpoly/numpoly-1.2.3/numpoly/construct/ |
H A D | compose.py | 64 dtype = numpy.find_common_type(dtypes, [])
|
/dports/math/py-numpy/numpy-1.20.3/numpy/lib/ |
H A D | index_tricks.py | 10 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 D | transformation.py | 51 dtype = np.find_common_type([dtype, matrix.dtype], [])
|
H A D | curve.py | 767 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 D | utils2.c | 47 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 D | utils2.c | 47 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.py | 602 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 D | sputils.py | 44 upcast = np.find_common_type(args, [])
|
/dports/science/py-scipy/scipy-1.7.1/scipy/spatial/ |
H A D | distance.py | 160 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.py | 1869 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 D | floating.py | 68 np_dtype = np.find_common_type(
|