@@ -1634,7 +1634,7 @@ class ComplexBlock(FloatOrComplexBlock):
16341634
16351635 def _can_hold_element (self , element ):
16361636 if is_list_like (element ):
1637- element = np .array (element )
1637+ element = np .asanyarray (element )
16381638 return issubclass (element .dtype .type ,
16391639 (np .floating , np .integer , np .complexfloating ))
16401640 return (isinstance (element ,
@@ -1658,7 +1658,7 @@ class IntBlock(NumericBlock):
16581658
16591659 def _can_hold_element (self , element ):
16601660 if is_list_like (element ):
1661- element = np .array (element )
1661+ element = np .asanyarray (element )
16621662 tipo = element .dtype .type
16631663 return (issubclass (tipo , np .integer ) and
16641664 not issubclass (tipo , (np .datetime64 , np .timedelta64 )))
@@ -1805,7 +1805,7 @@ class BoolBlock(NumericBlock):
18051805
18061806 def _can_hold_element (self , element ):
18071807 if is_list_like (element ):
1808- element = np .array (element )
1808+ element = np .asanyarray (element )
18091809 return issubclass (element .dtype .type , np .integer )
18101810 return isinstance (element , (int , bool ))
18111811
0 commit comments