code: def from_pandas(cls, index):
          
          from pandas import Index as PandasIndex
          check_type(index, PandasIndex)
  
          return Index(index.values,
                       index.dtype,
                       index.name)
docs: Create baloo Index from pandas Index.
  
          Parameters
          ----------
          index : pandas.base.Index
  
          Returns
          -------
          Index