<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
               xmlns:atom="http://www.w3.org/2005/Atom"
               xmlns:dc="http://purl.org/dc/elements/1.1/"
               xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
               xmlns:admin="http://webns.net/mvcb/"
               xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
               xmlns:content="http://purl.org/rss/1.0/modules/content/">
            <channel>
                <title>
					                		Scipyを使った平均値でエラーになり「Module&#039;scipy&#039; has no attribute &#039;mean&#039;」と表示されます - AI Forum                                    </title>
                <link>https://tech-sta.com/blog/forum/aipython/scipy%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e5%b9%b3%e5%9d%87%e5%80%a4%e3%81%a7%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%aa%e3%82%8a%e3%80%8cmodulescipy-has-no-attribute-mean%e3%80%8d%e3%81%a8/</link>
                <description>Tech Stadium Forum Q&amp;A</description>
                <language>ja</language>
                <lastBuildDate>Mon, 16 Nov 2026 22:33:05 +0000</lastBuildDate>
                <generator>wpForo</generator>
                <ttl>60</ttl>
                					                    <item>
                        <title>RE: Scipyを使った平均値でエラーになり「Module&#039;scipy&#039; has no attribute &#039;mean&#039;」と表示されます</title>
                        <link>https://tech-sta.com/blog/forum/aipython/scipy%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e5%b9%b3%e5%9d%87%e5%80%a4%e3%81%a7%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%aa%e3%82%8a%e3%80%8cmodulescipy-has-no-attribute-mean%e3%80%8d%e3%81%a8/#post-4233</link>
                        <pubDate>Mon, 21 Jul 2025 00:00:55 +0000</pubDate>
                        <description><![CDATA[解決しました。ありがとうございました。]]></description>
                        <content:encoded><![CDATA[<p><span>解決しました。ありがとうございました。</span></p>]]></content:encoded>
                        <category domain="https://tech-sta.com/blog/forum/aipython/">AI Forum</category>                        <dc:creator>Student</dc:creator>
                        <guid isPermaLink="true">https://tech-sta.com/blog/forum/aipython/scipy%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e5%b9%b3%e5%9d%87%e5%80%a4%e3%81%a7%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%aa%e3%82%8a%e3%80%8cmodulescipy-has-no-attribute-mean%e3%80%8d%e3%81%a8/#post-4233</guid>
                    </item>
                                        <item>
                        <title>RE: Scipyを使った平均値でエラーになり「Module&#039;scipy&#039; has no attribute &#039;mean&#039;」と表示されます</title>
                        <link>https://tech-sta.com/blog/forum/aipython/scipy%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e5%b9%b3%e5%9d%87%e5%80%a4%e3%81%a7%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%aa%e3%82%8a%e3%80%8cmodulescipy-has-no-attribute-mean%e3%80%8d%e3%81%a8/#post-4232</link>
                        <pubDate>Mon, 21 Jul 2025 00:00:39 +0000</pubDate>
                        <description><![CDATA[今回の問題は以下の二つの原因を考えられます。

importミス

mean関数はScipyのstatsモジュールを使う必要があります。


バージョン問題

バージョンが古いのかもしれません。



以下の解決方法を試して頂きたいと思います。既存のimport scipyを下のように修正するか
import scipy.stats as sp sp...]]></description>
                        <content:encoded><![CDATA[<div class="p-rich_text_section">今回の問題は以下の二つの原因を考えられます。<span class="c-mrkdwn__br" aria-label=" " data-stringify-type="paragraph-break"></span></div>
<ol class="p-rich_text_list p-rich_text_list__ordered p-rich_text_list--nested" data-stringify-type="ordered-list" data-list-tree="true" data-indent="0" data-border="0">
<li data-stringify-indent="0" data-stringify-border="0">importミス
<ul class="p-rich_text_list p-rich_text_list__bullet p-rich_text_list--nested" data-stringify-type="unordered-list" data-list-tree="true" data-indent="1" data-border="0">
<li data-stringify-indent="1" data-stringify-border="0">mean関数はScipyのstatsモジュールを使う必要があります。</li>
</ul>
</li>
<li data-stringify-indent="0" data-stringify-border="0">バージョン問題
<ul class="p-rich_text_list p-rich_text_list__bullet p-rich_text_list--nested" data-stringify-type="unordered-list" data-list-tree="true" data-indent="1" data-border="0">
<li data-stringify-indent="1" data-stringify-border="0">バージョンが古いのかもしれません。</li>
</ul>
</li>
</ol>
<div class="p-rich_text_section"><span class="c-mrkdwn__br" aria-label=" " data-stringify-type="paragraph-break"></span>以下の解決方法を試して頂きたいと思います。<span class="c-mrkdwn__br" aria-label=" " data-stringify-type="paragraph-break"></span>既存のimport scipyを下のように修正するか</div>
<div class="p-rich_text_block--no-overflow">import scipy.stats as sp sp.mean(data)</div>
<div> </div>
<div class="p-rich_text_section">mean関数の前にstatsを直接呼んで使用して頂きたいと思います。</div>
<div><span>import scipy as sp sp.stats.tmean(data)</span></div>
<div class="p-rich_text_section"><span class="c-mrkdwn__br" aria-label=" " data-stringify-type="paragraph-break"></span>バージョンが古くて発生する問題かもしれませんので上で治らなかった際は<br />Bashに<code class="c-mrkdwn__code" data-stringify-type="code">pip install --upgrade scipy</code></div>
<div class="p-rich_text_section">を試してください。</div>]]></content:encoded>
                        <category domain="https://tech-sta.com/blog/forum/aipython/">AI Forum</category>                        <dc:creator>Teacher</dc:creator>
                        <guid isPermaLink="true">https://tech-sta.com/blog/forum/aipython/scipy%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e5%b9%b3%e5%9d%87%e5%80%a4%e3%81%a7%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%aa%e3%82%8a%e3%80%8cmodulescipy-has-no-attribute-mean%e3%80%8d%e3%81%a8/#post-4232</guid>
                    </item>
                                        <item>
                        <title>Scipyを使った平均値でエラーになり「Module&#039;scipy&#039; has no attribute &#039;mean&#039;」と表示されます</title>
                        <link>https://tech-sta.com/blog/forum/aipython/scipy%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e5%b9%b3%e5%9d%87%e5%80%a4%e3%81%a7%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%aa%e3%82%8a%e3%80%8cmodulescipy-has-no-attribute-mean%e3%80%8d%e3%81%a8/#post-4231</link>
                        <pubDate>Sun, 20 Jul 2025 23:59:49 +0000</pubDate>
                        <description><![CDATA[統計の基礎①NumpyとScipy質問：Scipyを使った平均値で、エラーになり、「Module&#039;scipy&#039; has no attribute &#039;mean&#039;」と表示されます。どうすればいいですか？
&nbsp;scipy-平均値エラー.png]]></description>
                        <content:encoded><![CDATA[<p><span>統計の基礎①NumpyとScipy</span><br /><span>質問：Scipyを使った平均値で、エラーになり、「Module'scipy' has no attribute 'mean'」と表示されます。</span><br /><span>どうすればいいですか？</span></p>
<div id="wpfa-890" class="wpforo-attached-file"><a class="wpforo-default-attachment" href="//tech-sta.com/blog/wp-content/uploads/wpforo/default_attachments/1753055989-scipy.png" target="_blank"><i class="fas fa-paperclip"></i>&nbsp;scipy-平均値エラー.png</a></div>]]></content:encoded>
                        <category domain="https://tech-sta.com/blog/forum/aipython/">AI Forum</category>                        <dc:creator>Student</dc:creator>
                        <guid isPermaLink="true">https://tech-sta.com/blog/forum/aipython/scipy%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e5%b9%b3%e5%9d%87%e5%80%a4%e3%81%a7%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%aa%e3%82%8a%e3%80%8cmodulescipy-has-no-attribute-mean%e3%80%8d%e3%81%a8/#post-4231</guid>
                    </item>
                                                </channel>
        </rss>
        