class_docstr: Object for working with Tripos Mol2 structure files.
  
  Attributes
  ----------
  df : pandas.DataFrame
      DataFrame of a Mol2's ATOM section
  
  mol2_text : str
      Mol2 file contents in string format
  
  code : str
      ID, code, or name of the molecule stored
  
  pdb_path : str
      Location of the MOL2 file that was read in via `read_mol2`
class_docstr_tok: ["Object","for","working","with","Tripos","Mol2","structure","files",".","Attributes","--","--","--","--","--","df",":","pandas.DataFrame","DataFrame","of","a","Mol2","'s","ATOM","section","mol2_text",":","str","Mol2","file","contents","in","string","format","code",":","str","ID",",","code",",","or","name","of","the","molecule","stored","pdb_path",":","str","Location","of","the","MOL2","file","that","was","read","in","via","`","read_mol2","`"]
docstr: Load mol2 contents into assert_raise_message instance
docstr_tok: ["Load","mol2","contents","into","assert_raise_message","instance"]
code: def _load_mol2(self, mol2_lines, mol2_code, columns):
      """Load mol2 contents into assert_raise_message instance"""
      if columns is None:
          col_names = COLUMN_NAMES
          col_types = COLUMN_TYPES
      else:
          col_names, col_types = [], []
          for i in range(len(columns)):
              col_names.append(columns[i][0])
              col_types.append(columns[i][1])
  
      try:
          self.mol2_text = "".join(mol2_lines)
          self.code = mol2_code
      except TypeError:
          mol2_lines = [m.decode() for m in mol2_lines]
          self.mol2_text = "".join(mol2_lines)
          self.code = mol2_code.decode()
  
      self._df = self._construct_df(mol2_lines, col_names, col_types)
  
file_path: biopandas/biopandas/mol2/pandas_mol2.py
imports: import pandas
  import numpy
  from .mol2_io import split_multimol2
label_desc: Use image node_id 4 for calling the PandasMol2 obj's underlying member method code with example usage: obj._load_mol2(mol2_lines, mol2_code, columns) without return types