def __init__(self, data, dtype=None, name=None):
        """Initialize an Index object.

        Parameters
        ----------
        data : np.ndarray or WeldObject or list
            Raw data or Weld expression.
        dtype : np.dtype, optional
            Numpy dtype of the elements. Inferred from `data` by default.
        name : str, optional
            Name of the Index.

        """
        data, dtype = _process_input_data(data, dtype)
        self.dtype = dtype
        self.name = check_type(name, str)
        self._length = len(data) if isinstance(data, np.ndarray) else None

        super(Index, self).__init__(data, numpy_to_weld_type(self.dtype))
def __init__ ( self , data , dtype = None , name = None ) : data , dtype = _process_input_data ( data , dtype ) self . dtype = dtype self . name = check_type ( name , str ) self . _length = len ( data ) if isinstance ( data , np . ndarray ) else None super ( Index , self ) . __init__ ( data , numpy_to_weld_type ( self . dtype ) )
Initialize an Index object.

        Parameters
        ----------
        data : np.ndarray or WeldObject or list
            Raw data or Weld expression.
        dtype : np.dtype, optional
            Numpy dtype of the elements. Inferred from `data` by default.
        name : str, optional
            Name of the Index.