擅长:python、mysql、java
<p>请找到最新的答案</p>
<pre><code># Online Python compiler (interpreter) to run Python online.
import pandas as pd
import statistics
# Creating the dataframe
df = pd.DataFrame({"A":[12, 4, 5, None, 1],
"B":[7, 2, 54, 3, None],
"C":[20, 16, 11, 3, 8],
"D":[14, 3, None, 2, 6]})
# skip the Na values while finding the mean
print(df.mean(axis = 1, skipna = True))
te = df.mean(axis = 1, skipna = True)
print(statistics.mean(te))
</code></pre>
<p>13.25万美元</p>
<p>16.25万
2 23.333</p>
<p>3.2.666667</p>
<p>450万</p>
<p>数据类型:64</p>
<p>这就是答案。
<strong>10.1</strong></p>
<blockquote>
</blockquote>
<p>老对话:</p>
<p>这是mean的语法</p>
<pre><code># Importing the statistics module
import statistics
# list of positive integer numbers
data1 = [1, 3, 4, 5, 7, 9, 2]
x = statistics.mean(data1)
</code></pre>
<p>现在你做错的是</p>
<pre><code>return statistics.mean(row['wk13QtyEXT']+row['wk12QtyEXT']) is wrong
return statistics.mean(row) is right
</code></pre>