class_docstr: Object for working with Protein Databank structure files.
  
  Attributes
  ----------
  df : dict
      Dictionary storing pandas DataFrames for PDB record sections.
      The dictionary keys are {'ATOM', 'HETATM', 'ANISOU', 'OTHERS'}
      where 'OTHERS' contains all entries that are not parsed as
      'ATOM', 'HETATM', or 'ANISOU'.
  
  pdb_text : str
      PDB file contents in raw text format.
  
  pdb_path : Union[str, os.PathLike]
      Location of the PDB file that was read in via `read_pdb`
      or URL of the page where the PDB content was fetched from
      if `fetch_pdb` was called.
  
  header : str
      PDB file description.
  
  code : str
      PDB code
class_docstr_tok: ["Object","for","working","with","Protein","Databank","structure","files",".","Attributes","--","--","--","--","--","df",":","dict","Dictionary","storing","pandas","DataFrames","for","PDB","record","sections",".","The","dictionary","keys","are","{","'ATOM","'",",","'HETATM","'",",","'ANISOU","'",",","'OTHERS","'","}","where","'OTHERS","'","contains","all","entries","that","are","not","parsed","as","'ATOM","'",",","'HETATM","'",",","or","'ANISOU","'",".","pdb_text",":","str","PDB","file","contents","in","raw","text","format",".","pdb_path",":","Union","[","str",",","os.PathLike","]","Location","of","the","PDB","file","that","was","read","in","via","`","read_pdb","`","or","URL","of","the","page","where","the","PDB","content","was","fetched","from","if","`","fetch_pdb","`","was","called",".","header",":","str","PDB","file","description",".","code",":","str","PDB","code"]
docstr: Computes Euclidean distance between atoms and a 3D point.
  
  Parameters
  ----------
  df : DataFrame
      DataFrame containing entries in the `PandasPdb.df['ATOM']`
      or `PandasPdb.df['HETATM']` format for the
      the distance computation to the `xyz` reference coordinates.
  xyz : tuple, default: (0.00, 0.00, 0.00)
      X, Y, and Z coordinate of the reference center for the distance
      computation.
  
  Returns
  ---------
  pandas.Series : Pandas Series object containing the Euclidean
      distance between the atoms in the record section and `xyz`.
docstr_tok: ["Computes","Euclidean","distance","between","atoms","and","a","3D","point",".","Parameters","--","--","--","--","--","df",":","DataFrame","DataFrame","containing","entries","in","the","`","PandasPdb.df","[","'ATOM","'","]","`","or","`","PandasPdb.df","[","'HETATM","'","]","`","format","for","the","the","distance","computation","to","the","`","xyz","`","reference","coordinates",".","xyz",":","tuple",",","default",":","(","0.00",",","0.00",",","0.00",")","X",",","Y",",","and","Z","coordinate","of","the","reference","center","for","the","distance","computation",".","Returns","--","--","--","--","-","pandas.Series",":","Pandas","Series","object","containing","the","Euclidean","distance","between","the","atoms","in","the","record","section","and","`","xyz","`","."]
code: def distance_df(df, xyz=(0.00, 0.00, 0.00)):
      """Computes Euclidean distance between atoms and a 3D point.
  
      Parameters
      ----------
      df : DataFrame
          DataFrame containing entries in the `PandasPdb.df['ATOM']`
          or `PandasPdb.df['HETATM']` format for the
          the distance computation to the `xyz` reference coordinates.
      xyz : tuple, default: (0.00, 0.00, 0.00)
          X, Y, and Z coordinate of the reference center for the distance
          computation.
  
      Returns
      ---------
      pandas.Series : Pandas Series object containing the Euclidean
          distance between the atoms in the record section and `xyz`.
  
      """
      return np.sqrt(
          np.sum(
              df[["x_coord", "y_coord", "z_coord"]].subtract(
                  xyz, axis=1
              )
              ** 2,
              axis=1,
          )
      )
  
imports: from __future__ import annotations
  import gzip
  import sys
  import warnings
  import textwrap
  from copy import deepcopy
  from io import StringIO
  from typing import List, Optional
  from urllib.error import HTTPError, URLError
  from urllib.request import urlopen
  from warnings import warn
  import numpy
  import pandas
  from looseversion import LooseVersion
  from .engines import amino3to1dict, pdb_df_columns, pdb_records
  from biopandas.constants import ATOMIC_MASSES
label_desc: Use image node_id 24 for calling the PandasPdb obj's underlying member method code with example usage: obj.distance_df(df, xyz) and returns: np