擅长:python、mysql、java
<p>解决方案链接到<a href="https://pandas.pydata.org/pandas-docs/version/0.22/generated/pandas.Series.reshape.html#pandas.Series.reshape" rel="noreferrer">documentation page</a>上的重塑方法。</p>
<p>代替<code>Y.reshape(-1,1)</code>您需要使用:</p>
<pre><code>Y.values.reshape(-1,1)
</code></pre>