code: def get_scores(self, a, b):
      to_ret = rankdata(a, "dense") / np.max(
          rankdata(a, "dense")
      ) - rankdata(b, "dense") / np.max(rankdata(b, "dense"))
  
      if type(a) == pd.Series:
          return pd.Series(to_ret, index=a.index)
      return to_ret
  
file_path: scattertext/scattertext/termscoring/RankDifference.py
imports: import numpy
  import pandas
  from scipy.stats import rankdata
label_desc: Use image node_id 1 for calling the RankDifference obj's underlying member method code with example usage: obj.get_scores(a, b) and returns: to_ret, pd