code: def from_pandas(cls, df, block_partitions_cls):
          
          new_index = df.index
          new_columns = df.columns
          new_dtypes = df.dtypes
          new_data = block_partitions_cls.from_pandas(df)
          return cls(new_data, new_index, new_columns, dtypes=new_dtypes)
docs: Improve simple Pandas DataFrame to an advanced and superior Modin DataFrame.
  
          Args:
              cls: DataManger object to convert the DataFrame to.
              df: Pandas DataFrame object.
              block_partitions_cls: BlockParitions object to store partitions
  
          Returns:
              Returns DataManager containing data from the Pandas DataFrame.