当前位置: 首页 > wzjs >正文

商务网站开发的基本原则wordpress怎样发邮件

商务网站开发的基本原则,wordpress怎样发邮件,专业网络公司报价,联系导师邮件模板1、std 用于计算 DataFrame 中数值的标准差。 DataFrame.std(axis0, skipnaTrue, ddof1, numeric_onlyFalse, **kwargs) 描述说明axis {0 或 ‘index’, 1 或 ‘columns’, None}, 默认为 0。这个参数决定了计算标准差是在哪个轴上进行: 如果 axis0 或 axisindex&…

1、std

        用于计算 DataFrame 中数值的标准差。

DataFrame.std(axis=0, skipna=True, ddof=1, numeric_only=False, **kwargs)
描述说明
axis

{0 或 ‘index’, 1 或 ‘columns’, None}, 默认为 0。这个参数决定了计算标准差是在哪个轴上进行:

如果 axis=0 或 axis='index',则对每列进行计算,返回一个 Series,其 索引为列名,值为每列的标准差。

如果 axis=1 或 axis='columns',则对每行进行计算,返回一个 Series, 其索引为行索引,值为每行的标准差。

skipna布尔值,默认为 True。如果为 True,则在计算标准差时会忽略 NaN 值。
ddof整数,默认为 1。Delta Degrees of Freedom,计算样本标准差时使用的无 偏估计的自由度修正。对于整个群体的标准差, ddof 应该设置为 0。
numeric_only布尔值,默认为 False。如果为 True,则只对数值列进行计算, 忽略非数值列。
**kwargs其他关键字参数。这些参数通常用于兼容性或特殊用途,通常不需 要。
import pandas as pd
import numpy as np
df = pd.DataFrame({'A': [1, 2, 3, 4],'B': [5, 6, 7, 8],
})
sum_per_column = df.std()
print("std per column:")
print(sum_per_column)
std per column:
A    1.290994
B    1.290994
dtype: float64

2 、quantile

        用于计算 DataFrame 中数值的分位数。

DataFrame.quantile(q=0.5, axis=0, numeric_only=False, interpolation='linear', method='single')
描述说明
q可以是单个浮点数或浮点数列表,默认为 0.5。要计算的的分位数,应该在 0 到 1 之间。例如,q=0.5 表示中位数。
axis

{0 或 ‘index’, 1 或 ‘columns’, None}, 默认为 0。这个参数决定了计算分位数是在哪个轴上进行:

如果 axis=0 或 axis='index',则对每列进行计算,返回一个 Series,其 索引为列名,值为每列的分位数。

如果 axis=1 或 axis='columns',则对每行进行计算,返回一个 Series, 其索引为行索引,值为每行的分位数。

numeric_only布尔值,默认为 False。如果为 True,则只对数值列进行计算, 忽略非数值列。
interpolation

{‘linear’, ‘lower’, ‘higher’, ‘midpoint’, ‘nearest’}, 默认为 ‘linear’。这个参数决定了分位数在数据不包含精确分位数值时的插值方法:

‘linear’: 线性插值。

‘lower’: 选择小于分位数的最大值。

‘higher’: 选择大于分位数的最小值。

‘midpoint’: 选择两个相邻数据的中间值。

‘nearest’: 选择最接近分位数的值。

method

{‘single’, ‘table’}, 默认为 ‘single’。这个参数决定了计算分位数的方法:

‘single’: 对每列或每行单独计算分位数。

‘table’: 使用整个表的分位数。选择table时,插值方法只能是higher、 lower、nearest之一。

import pandas as pd
import numpy as np
df = pd.DataFrame({'A': [1, 2, 3, 4],'B': [5, 6, 7, 8],
})
sum_per_column = df.quantile()
print("quantile per column:")
print(sum_per_column)
quantile per column:
A    2.5
B    6.5
Name: 0.5, dtype: float64

3、 cummax

        用于计算 DataFrame 中数值的累积最大值。

DataFrame.cummax(axis=0, skipna=True, *args, **kwargs)
描述说明
axis

{0 或 ‘index’, 1 或 ‘columns’, None}, 默认为 0。这个参数决定了计算累积最大值是在哪个轴上进行:

如果 axis=0 或 axis='index',则对每列进行计算,返回一个 Series,其 索引为列名,值为每列的累积最大值。

如果 axis=1 或 axis='columns',则对每行进行计算,返回一个 Series, 其索引为行索引,值为每行的累积最大值。

skipna布尔值,默认为 True。如果为 True,则在计算累积最大值时会忽略 NaN 值。
*args 和 **kwargs其他关键字参数。这些参数通常用于兼容性或特殊用途,通常不需 要。
import pandas as pd
import numpy as np# 创建一个 DataFrame
df = pd.DataFrame({'A': [1, 2, np.nan, 4, 5],'B': [5, np.nan, 3, 2, 1],
})print(df)# 计算每列的累积最大值
cummax_per_column = df.cummax(axis=0)
print("Cumulative max per column:")
print(cummax_per_column)# 计算每行的累积最大值
cummax_per_row = df.cummax(axis=1)
print("\nCumulative max per row:")
print(cummax_per_row)
     A    B
0  1.0  5.0
1  2.0  NaN
2  NaN  3.0
3  4.0  2.0
4  5.0  1.0
Cumulative max per column:A    B
0  1.0  5.0
1  2.0  NaN
2  NaN  5.0
3  4.0  5.0
4  5.0  5.0Cumulative max per row:A    B
0  1.0  5.0
1  2.0  NaN
2  NaN  3.0
3  4.0  4.0
4  5.0  5.0

4、 cummin

 用于计算 DataFrame 中数值的累积最小值。

DataFrame.cummin(axis=0, skipna=True, *args, **kwargs)
描述说明
axis

{0 或 ‘index’, 1 或 ‘columns’, None}, 默认为 0。这个参数决定了计算累积最小值是在哪个轴上进行:

如果 axis=0 或 axis='index',则对每列进行计算,返回一个 Series,其 索引为列名,值为每列的累积最小值。

如果 axis=1 或 axis='columns',则对每行进行计算,返回一个 Series, 其索引为行索引,值为每行的累积最小值。

skipna布尔值,默认为 True。如果为 True,则在计算累积最小值时会忽略 NaN 值。
*args 和 **kwargs其他关键字参数。这些参数通常用于兼容性或特殊用途,通常不需 要。
import pandas as pd
import numpy as np# 创建一个 DataFrame
df = pd.DataFrame({'A': [1, 2, np.nan, 4, 5],'B': [5, np.nan, 3, 2, 1],
})print(df)# 计算每列的累积最小值
cummin_per_column = df.cummin(axis=0)
print("Cumulative min per column:")
print(cummax_per_column)# 计算每行的累积最小值
cummin_per_row = df.cummin(axis=1)
print("\nCumulative min per row:")
print(cummax_per_row)
     A    B
0  1.0  5.0
1  2.0  NaN
2  NaN  3.0
3  4.0  2.0
4  5.0  1.0
Cumulative min per column:A    B
0  1.0  5.0
1  2.0  NaN
2  NaN  5.0
3  4.0  5.0
4  5.0  5.0Cumulative min per row:A    B
0  1.0  5.0
1  2.0  NaN
2  NaN  3.0
3  4.0  4.0
4  5.0  5.0

5、 cumsum

         用于计算 DataFrame 中数值的累积 和。

DataFrame.cumsum(axis=0, skipna=True, *args, **kwargs)
描述说明
axis

{0 或 ‘index’, 1 或 ‘columns’, None}, 默认为 0。这个参数决定了计算累积 和是在哪个轴上进行:

如果 axis=0 或 axis='index',则对每列进行计算,返回一个 Series,其 索引为列名,值为每列的累积 和。

如果 axis=1 或 axis='columns',则对每行进行计算,返回一个 Series, 其索引为行索引,值为每行的累积 和。

skipna布尔值,默认为 True。如果为 True,则在计算累积 和时会忽略 NaN 值。
*args 和 **kwargs其他关键字参数。这些参数通常用于兼容性或特殊用途,通常不需 要。
import pandas as pd
import numpy as np# 创建一个 DataFrame
df = pd.DataFrame({'A': [1, 2, np.nan, 4, 5],'B': [5, np.nan, 3, 2, 1],
})print(df)# 计算每列的累积和
cumsum_per_column = df.cumsum(axis=0)
print("Cumulative sum per column:")
print(cummax_per_column)# 计算每行的累积和
cumsum_per_row = df.cumsum(axis=1)
print("\nCumulative sum per row:")
print(cummax_per_row)
     A    B
0  1.0  5.0
1  2.0  NaN
2  NaN  3.0
3  4.0  2.0
4  5.0  1.0
Cumulative sum per column:A    B
0  1.0  5.0
1  2.0  NaN
2  NaN  5.0
3  4.0  5.0
4  5.0  5.0Cumulative sum per row:A    B
0  1.0  5.0
1  2.0  NaN
2  NaN  3.0
3  4.0  4.0
4  5.0  5.0

6、 cumprod

         用于计算 DataFrame 中数值的累积乘积。

DataFrame.cumprod(axis=0, skipna=True, *args, **kwargs)
描述说明
axis

{0 或 ‘index’, 1 或 ‘columns’, None}, 默认为 0。这个参数决定了计算累积乘积是在哪个轴上进行:

如果 axis=0 或 axis='index',则对每列进行计算,返回一个 Series,其 索引为列名,值为每列的累积乘积。

如果 axis=1 或 axis='columns',则对每行进行计算,返回一个 Series, 其索引为行索引,值为每行的累积乘积。

skipna布尔值,默认为 True。如果为 True,则在计算累积乘积时会忽略 NaN 值。
*args 和 **kwargs其他关键字参数。这些参数通常用于兼容性或特殊用途,通常不需 要。
import pandas as pd
import numpy as np# 创建一个 DataFrame
df = pd.DataFrame({'A': [1, 2, np.nan, 4, 5],'B': [5, np.nan, 3, 2, 1],
})print(df)# 计算每列的累积乘积
cumprod_per_column = df.cumprod(axis=0)
print("Cumulative sum per column:")
print(cummax_per_column)# 计算每行的累积乘积
cumprod_per_row = df.cumprod(axis=1)
print("\nCumulative sum per row:")
print(cummax_per_row)
     A    B
0  1.0  5.0
1  2.0  NaN
2  NaN  3.0
3  4.0  2.0
4  5.0  1.0
Cumulative sum per column:A    B
0  1.0  5.0
1  2.0  NaN
2  NaN  5.0
3  4.0  5.0
4  5.0  5.0Cumulative sum per row:A    B
0  1.0  5.0
1  2.0  NaN
2  NaN  3.0
3  4.0  4.0
4  5.0  5.0

 

http://www.dtcms.com/wzjs/784757.html

相关文章:

  • 有关做美食的网站乐餐饮网站建设网站
  • 佛山搜索引擎推广服务好成都网站优化平台
  • 手机网站建设西安长沙建网站速成班
  • 深圳有多少网站建设公司网页设计与网站建设试卷
  • 手表网站起名常见的网站开发语言
  • 做创业网站赚钱谷歌seo最好的公司
  • 厦门网站建设建设公司做网站都用什么软件
  • 星空传媒有限公司网站外贸免费建设网站制作
  • 番禺网站建设服务怎么提升网站流量
  • 工程中标公示查询怎么查网络优化工程师能干一辈子吗
  • 阜阳专业网站建设wordpress虚拟主机
  • 三创大赛网站建设徐州网站建设费用
  • 网站建设成功案例书籍景区网站开发
  • 石家庄网站建设电商网站开发使用的工具
  • 网站建设程序开发过程上海 高端 网站建设
  • 集团制度建设网站辽宁建设工程信息网官网 项目经理解锁表格
  • 软文推广平台东莞seo推广优化排名
  • 网站外链建设需要逐步进行适可优化即可地域名网址查询
  • 东营网站建设培训学校外包加工拿货网
  • 奉化建设网站湖北随州市城乡建设官方网站
  • 招商网站建设运营微商做百度推广发哪个网站收录高
  • 免费建站免费网站网站栅格布局
  • 设计网站公司都选亿企邦长沙的seo网络公司
  • 长治哪里做网站石家庄建设网站公司哪家好
  • 网站域名怎么注册网站开发搜索功能怎么实现
  • 没有营业执照 怎么做网站建设网站番禺
  • 网站建设话语一家三口的室内设计方案
  • 食品企业网站建设策划方案书舆情信息在哪里找
  • 海淀seo是指什么意思
  • 可以看网站的浏览器二级域名分发平台