@@ -614,7 +614,7 @@ def shape(self):
614
614
return len (self .index ), len (self .columns )
615
615
616
616
@property
617
- def _is_homogeneous (self ):
617
+ def _is_homogeneous_type (self ):
618
618
"""
619
619
Whether all the columns in a DataFrame have the same type.
620
620
@@ -624,16 +624,17 @@ def _is_homogeneous(self):
624
624
625
625
Examples
626
626
--------
627
- >>> DataFrame({"A": [1, 2], "B": [3, 4]})._is_homogeneous
627
+ >>> DataFrame({"A": [1, 2], "B": [3, 4]})._is_homogeneous_type
628
628
True
629
- >>> DataFrame({"A": [1, 2], "B": [3.0, 4.0]})._is_homogeneous
629
+ >>> DataFrame({"A": [1, 2], "B": [3.0, 4.0]})._is_homogeneous_type
630
630
False
631
631
632
632
Items with the same type but different sizes are considered
633
633
different types.
634
634
635
- >>> DataFrame({"A": np.array([1, 2], dtype=np.int32),
636
- ... "B": np.array([1, 2], dtype=np.int64)})._is_homogeneous
635
+ >>> DataFrame({
636
+ ... "A": np.array([1, 2], dtype=np.int32),
637
+ ... "B": np.array([1, 2], dtype=np.int64)})._is_homogeneous_type
637
638
False
638
639
"""
639
640
if self ._data .any_extension_types :
0 commit comments