code: def get_bounding_box(df_points):
      '''
      Calculate the bounding box of all points in a data frame.
      '''
      xy_min = df_points[['x', 'y']].min()
      xy_max = df_points[['x', 'y']].max()
  
      wh = xy_max - xy_min
      wh.index = 'width', 'height'
      bbox = pd.concat([xy_min, wh])
      bbox.name = 'bounding_box'
      return bbof get_bounding_box(df_points):
      '''
      Calculate the bounding box of all points in a data frame.
      '''
      xy_min = df_points[['x', 'y']].min()
      xy_max = df_points[['x', 'y']].max()
  
      wh = xy_max - xy_min
      wh.index = 'width', 'height'
      bbox = pd.concat([xy_min, wh])
      bbox.name = 'bounding_box'
      return bbox
docs: Calculate the bounding box of all points in a data frame.