class_docstr: Object for drawing tree of similarities between data rows/columns
class_docstr_tok: ["Object","for","drawing","tree","of","similarities","between","data","rows\/columns"]
code: def _calculate_linkage_scipy(self):
      linkage = hierarchy.linkage(
          self.array, method=self.method, metric=self.metric
      )
      return linkage
  
imports: import warnings
  import matplotlib
  from matplotlib.collections import LineCollection
  import matplotlib.pyplot
  from matplotlib import gridspec
  import numpy
  import pandas
  from .None import cm
  from .axisgrid import Grid
  from ._compat import get_colormap
  from .utils import despine, axis_ticklabels_overlap, relative_luminance, to_utf8, _draw_figure
label_desc: Use image node_id 2 for calling the _DendrogramPlotter obj's underlying member method code with example usage: obj._calculate_linkage_scipy() and returns: linkage