@staticmethod
def _is_indexable(data):
    """
        Check if the data object is indexable.

        Parameters:
            data: The data to be partitioned

        Returns:
            bool: True, if data is an indexable object. False, otherwise.
        """
    if hasattr(data, '__len__') and hasattr(data, '__getitem__'):
        return True
    else:
        return False
