class_docstr: Shared methods between Point and Line
class_docstr_tok: ["Shared","methods","between","Point","and","Line"]
code: def compute_bounds_dask(self, ddf):
      r = ddf.map_partitions(
          lambda df: np.array(
              [
                  [
                      np.nanmin(df[self.x].values).item(),
                      np.nanmax(df[self.x].values).item(),
                      np.nanmin(df[self.y].values).item(),
                      np.nanmax(df[self.y].values).item(),
                  ]
              ]
          )
      ).compute()
  
      x_extents = np.nanmin(r[:, 0]), np.nanmax(r[:, 1])
      y_extents = np.nanmin(r[:, 2]), np.nanmax(r[:, 3])
  
      return (
          self.maybe_expand_bounds(x_extents),
          self.maybe_expand_bounds(y_extents),
      )
  
imports: from __future__ import annotations
  from packaging.version import Version
  import numpy
  from toolz import memoize
  from datashader.glyphs.glyph import Glyph
  from datashader.utils import isreal, ngjit
  from numba import cuda
label_desc: Use image node_id 10 for calling the _PointLike obj's underlying member method code with example usage: obj.compute_bounds_dask(ddf) and returns: self,  self