Skip to content

Commit 670a8f9

Browse files
committed
remove import of numpy and pandas
1 parent 802ac84 commit 670a8f9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pandas/core/dtypes/common.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,6 @@ def is_implicit_conversion_to_float64(source, target) -> bool:
745745
False
746746
>>> is_implicit_conversion_to_float64("int", int)
747747
False
748-
>>> import numpy as np
749748
>>> is_implicit_conversion_to_float64(int, np.int64)
750749
False
751750
>>> is_implicit_conversion_to_float64(np.uint64, np.int64)
@@ -762,7 +761,6 @@ def is_implicit_conversion_to_float64(source, target) -> bool:
762761
False
763762
>>> is_implicit_conversion_to_float64(object, "category")
764763
False
765-
import pandas as pd
766764
>>> is_implicit_conversion_to_float64(np.int64, pd.UInt64Dtype())
767765
True
768766
>>> from pandas.core.dtypes.dtypes import CategoricalDtype

0 commit comments

Comments
 (0)