@property<EOL><INDENT>def _is_homogeneous_type(self):<DEDENT>
if self._data.any_extension_types:<EOL><INDENT>return len({block.dtype for block in self._data.blocks}) == <NUM_LIT:1><EOL><DEDENT>else:<EOL><INDENT>return not self._data.is_mixed_type<EOL><DEDENT>
Whether all the columns in a DataFrame have the same type.

Returns
-------
bool

Examples
--------
>>> DataFrame({"A": [1, 2], "B": [3, 4]})._is_homogeneous_type
True
>>> DataFrame({"A": [1, 2], "B": [3.0, 4.0]})._is_homogeneous_type
False

Items with the same type but different sizes are considered
different types.

>>> DataFrame({
...    "A": np.array([1, 2], dtype=np.int32),
...    "B": np.array([1, 2], dtype=np.int64)})._is_homogeneous_type
False