title: TypeError: unhashable type: 'numpy.ndarray' when I use Series.str.len() in pandas query?
body: <p>I encountered an issue that when I use Series.str.len() in pandas query method, and actually all the functions for Series.str is not supported in some of my envs, but work in other envs, and all these envs have almost same version of pandas and numpy. (I'm sure Series.str.xxxxx could work in all my envs before)</p>
  <p><strong>Env1</strong></p>
  <p>Python 3.9.7</p>
  <p>numpy==1.21.4</p>
  <p>pandas==1.3.4</p>
  <p>When I ran <code>pd.DataFrame(columns=['core_text']).query(&quot;core_text.str.len()&gt;1&quot;)</code>, it raised</p>
  <blockquote>
  <p>Traceback (most recent call last):
  File &quot;&quot;, line 1, in 
  File &quot;/Users/huhon/miniconda3/envs/venv_dev/lib/python3.9/site-packages/pandas/core/frame.py&quot;, line 4060, in query
  res = self.eval(expr, **kwargs)
  File &quot;/Users/huhon/miniconda3/envs/venv_dev/lib/python3.9/site-packages/pandas/core/frame.py&quot;, line 4191, in eval
  return _eval(expr, inplace=inplace, **kwargs)
  File &quot;/Users/huhon/miniconda3/envs/venv_dev/lib/python3.9/site-packages/pandas/core/computation/eval.py&quot;, line 353, in eval
  ret = eng_inst.evaluate()
  File &quot;/Users/huhon/miniconda3/envs/venv_dev/lib/python3.9/site-packages/pandas/core/computation/engines.py&quot;, line 80, in evaluate
  res = self._evaluate()
  File &quot;/Users/huhon/miniconda3/envs/venv_dev/lib/python3.9/site-packages/pandas/core/computation/engines.py&quot;, line 120, in _evaluate
  _check_ne_builtin_clash(self.expr)
  File &quot;/Users/huhon/miniconda3/envs/venv_dev/lib/python3.9/site-packages/pandas/core/computation/engines.py&quot;, line 36, in _check_ne_builtin_clash
  names = expr.names
  File &quot;/Users/huhon/miniconda3/envs/venv_dev/lib/python3.9/site-packages/pandas/core/computation/expr.py&quot;, line 834, in names
  return frozenset(term.name for term in com.flatten(self.terms))
  TypeError: unhashable type: 'numpy.ndarray'</p>
  </blockquote>
  <p><strong>Env2</strong></p>
  <p>Python 3.9.9</p>
  <p>numpy==1.21.4</p>
  <p>pandas==1.3.4</p>
  <p>It works perfected.</p>
  <p>Anyone can help? Thanks in advance!</p>
  <p>Hong</p>