docstr: Check stats.rankdata with an array of length 1.
docstr_tok: ["Check","stats.rankdata","with","an","array","of","length","1","."]
code: def test_one(self):
      """Check stats.rankdata with an array of length 1."""
      data = [100]
      a = np.array(data, dtype=int)
      r = rankdata(a)
      assert_array_equal(r, np.array([1.0], dtype=np.float64))
      r = rankdata(data)
      assert_array_equal(r, np.array([1.0], dtype=np.float64))
  
file_path: catboost/contrib/python/scipy/py3/scipy/stats/tests/test_rank.py
imports: import numpy
  from numpy.testing import assert_equal, assert_array_equal
  from scipy.stats import rankdata, tiecorrect
  import pytest
label_desc: Use image node_id 2 for calling the TestRankData obj's underlying member method code with example usage: obj.test_one() without return types