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

网站后台框架下载二级域名网站怎么投广告

网站后台框架下载,二级域名网站怎么投广告,在线网页转app,响应式外贸建站目录 一、用法精讲 881、pandas.Index.is_方法 881-1、语法 881-2、参数 881-3、功能 881-4、返回值 881-5、说明 881-6、用法 881-6-1、数据准备 881-6-2、代码示例 881-6-3、结果输出 882、pandas.Index.min方法 882-1、语法 882-2、参数 882-3、功能 882-4、…目录 一、用法精讲 881、pandas.Index.is_方法 881-1、语法 881-2、参数 881-3、功能 881-4、返回值 881-5、说明 881-6、用法 881-6-1、数据准备 881-6-2、代码示例 881-6-3、结果输出 882、pandas.Index.min方法 882-1、语法 882-2、参数 882-3、功能 882-4、返回值 882-5、说明 882-6、用法 882-6-1、数据准备 882-6-2、代码示例 882-6-3、结果输出 883、pandas.Index.max方法 883-1、语法 883-2、参数 883-3、功能 883-4、返回值 883-5、说明 883-6、用法 883-6-1、数据准备 883-6-2、代码示例 883-6-3、结果输出 884、pandas.Index.reindex方法 884-1、语法 884-2、参数 884-3、功能 884-4、返回值 884-5、说明 884-6、用法 884-6-1、数据准备 884-6-2、代码示例 884-6-3、结果输出 885、pandas.Index.rename方法 885-1、语法 885-2、参数 885-3、功能 885-4、返回值 885-5、说明 885-6、用法 885-6-1、数据准备 885-6-2、代码示例 885-6-3、结果输出 二、推荐阅读 1、Python筑基之旅 2、Python函数之旅 3、Python算法之旅 4、Python魔法之旅 5、博客个人主页 一、用法精讲 881、pandas.Index.is_方法 881-1、语法 # 881、pandas.Index.is_方法 final pandas.Index.is_(other) More flexible, faster check like is but that works through views.Note: this is not the same as Index.identical(), which checks that metadata is also the same.Parameters: other object Other object to compare against.Returns: bool True if both have same underlying data, False otherwise. 881-2、参数 881-2-1、other(必须)另一个要比较的对象通常是另一个Index实例。 881-3、功能 用于检查当前Index对象是否与other参数所指定的对象完全相同它不仅比较两个对象的内容是否相等更进一步地检查它们是否是内存中的同一个对象该比较方式比使用 运算符更严格因为 只会比较两个Index的值是否相等而is_()方法会检查它们是否是同一个对象实例。 881-4、返回值 返回一个布尔值如果两个对象是同一个实例返回True如果两个对象不是同一个实例返回False。 881-5、说明 无 881-6、用法 881-6-1、数据准备 无 881-6-2、代码示例 # 881、pandas.Index.is_方法 import pandas as pd # 创建两个相同内容的Index对象 idx1 pd.Index([1, 2, 3]) idx2 pd.Index([1, 2, 3]) # 使用is_()方法比较 print(idx1.is_(idx2)) # 创建一个引用 idx3 idx1 # 再次使用is_()方法比较 print(idx1.is_(idx3)) 881-6-3、结果输出 # 881、pandas.Index.is_方法 # False # True 882、pandas.Index.min方法 882-1、语法 # 882、pandas.Index.min方法 pandas.Index.min(axisNone, skipnaTrue, *args, **kwargs) Return the minimum value of the Index.Parameters: axis {None} Dummy argument for consistency with Series.skipna bool, default True Exclude NA/null values when showing the result.*args, **kwargs Additional arguments and keywords for compatibility with NumPy.Returns: scalar Minimum value. 882-2、参数 882-2-1、axis(可选默认值为None)对于Index对象该参数没有实际作用因为Index是一维的所以通常不需要指定。 882-2-2、skipna(可选默认值为True)布尔值如果为True则在计算最小值时会跳过缺失值(NaN)如果为False则如果存在缺失值结果也会是NaN。 882-2-3、*args(可选)其他位置参数为后续扩展功能做预留。 882-2-4、**kwargs(可选)其他关键字参数为后续扩展功能做预留。 882-3、功能 用于返回Index对象中的最小值它可以处理数值类型的数据并且可以选择性地忽略缺失值(NaN)。 882-4、返回值 返回Index中的最小值如果Index是空的或者全部为缺失值并且skipnaTrue则返回NaN。 882-5、说明 无 882-6、用法 882-6-1、数据准备 无 882-6-2、代码示例 # 882、pandas.Index.min方法 import pandas as pd index pd.Index([3, 1, 4, None, 2]) min_value index.min(skipnaTrue) min_value_with_nan index.min(skipnaFalse) print(min_value) print(min_value_with_nan) 882-6-3、结果输出 # 882、pandas.Index.min方法 # 1.0 # nan 883、pandas.Index.max方法 883-1、语法 # 883、pandas.Index.max方法 pandas.Index.max(axisNone, skipnaTrue, *args, **kwargs) Return the maximum value of the Index.Parameters: axis int, optional For compatibility with NumPy. Only 0 or None are allowed.skipna bool, default True Exclude NA/null values when showing the result.*args, **kwargs Additional arguments and keywords for compatibility with NumPy.Returns: scalar Maximum value. 883-2、参数 883-2-1、axis(可选默认值为None)对于Index对象该参数没有实际作用因为Index是一维的所以通常不需要指定。 883-2-2、skipna(可选默认值为True)布尔值如果为True则在计算最大值时会跳过缺失值(NaN)如果为False则如果存在缺失值结果也会是NaN。 883-2-3、*args(可选)其他位置参数为后续扩展功能做预留。 883-2-4、**kwargs(可选)其他关键字参数为后续扩展功能做预留。 883-3、功能 用于返回索引对象中的最大值它可以处理数值类型的数据并且可以选择性地忽略缺失值(NaN)。 883-4、返回值 返回索引对象中的最大值返回值的类型取决于索引的数据类型。例如如果索引是整数类型则返回一个整数如果索引是字符串类型则返回一个字符串。 883-5、说明 无 883-6、用法 883-6-1、数据准备 无 883-6-2、代码示例 # 883、pandas.Index.max方法 import pandas as pd # 创建一个索引对象 index pd.Index([3, 1, 4, 1, 5, 9, None]) # 计算最大值忽略缺失值 max_value index.max(skipnaTrue) print(max_value) # 计算最大值不忽略缺失值 max_value_with_nan index.max(skipnaFalse) print(max_value_with_nan) 883-6-3、结果输出 # 883、pandas.Index.max方法 # 9.0 # nan 884、pandas.Index.reindex方法 884-1、语法 # 884、pandas.Index.reindex方法 pandas.Index.reindex(target, methodNone, levelNone, limitNone, toleranceNone) Create index with target’s values.Parameters: targetan iterable method{None, ‘pad’/’ffill’, ‘backfill’/’bfill’, ‘nearest’}, optional default: exact matches only.pad / ffill: find the PREVIOUS index value if no exact match.backfill / bfill: use NEXT index value if no exact matchnearest: use the NEAREST index value if no exact match. Tied distances are broken by preferring the larger index value.levelint, optional Level of multiindex.limitint, optional Maximum number of consecutive labels in target to match for inexact matches.toleranceint or float, optional Maximum distance between original and new labels for inexact matches. The values of the index at the matching locations must satisfy the equation abs(index[indexer] - target) tolerance.Tolerance may be a scalar value, which applies the same tolerance to all values, or list-like, which applies variable tolerance per element. List-like includes list, tuple, array, Series, and must be the same size as the index and its dtype must exactly match the index’s type.Returns: new_index pd.Index Resulting index.indexer np.ndarray[np.intp] or None Indices of output values in original index.Raises: TypeError If method passed along with level.ValueError If non-unique multi-indexValueError If non-unique index and method or limit passed. 884-2、参数 884-2-1、target(必须)表示目标索引对象或类似数组的对象当前索引将被重新索引以匹配这个目标。 884-2-2、method(可选默认值为None)用于填充缺失值的方法可选值包括pad(前向填充)和backfill(后向填充)如果不需要填充可以保持为None。 884-2-3、level(可选默认值为None)如果索引是多级索引(MultiIndex)可以指定级别进行重新索引。 884-2-4、limit(可选默认值为None)表示用于限制填充时的步数。例如如果设置为1则最多填充一个连续的缺失值。 884-2-5、tolerance(可选默认值为None)表示用于限制填充时的最大距离可以是一个绝对值或与目标索引相同长度的数组。 884-3、功能 用于将当前索引与目标索引对齐返回一个新的索引对象该方法通常用于调整数据结构以匹配新的索引。 884-4、返回值 返回值是一个新的Index对象该对象是根据提供的target索引进行重新索引的结果。 884-5、说明 无 884-6、用法 884-6-1、数据准备 无 884-6-2、代码示例 # 884、pandas.Index.reindex方法 import pandas as pd # 创建一个索引对象 index pd.Index([1, 2, 3, 4]) # 目标索引 target [2, 3, 5] # 重新索引 new_index, match index.reindex(target) print(new_index) print(match) 884-6-3、结果输出 # 884、pandas.Index.reindex方法 # Index([2, 3, 5], dtypeint64) # [ 1 2 -1] 885、pandas.Index.rename方法 885-1、语法 # 885、pandas.Index.rename方法 pandas.Index.rename(name, *, inplaceFalse) Alter Index or MultiIndex name.Able to set new names without level. Defaults to returning new index. Length of names must match number of levels in MultiIndex.Parameters: name label or list of labels Name(s) to set.inplace bool, default False Modifies the object directly, instead of creating a new Index or MultiIndex.Returns: Index or None The same type as the caller or None if inplaceTrue. 885-2、参数 885-2-1、name(必须)字符串或None表示新的索引名称如果传入None则会移除索引的名称。 885-2-2、inplace(可选默认值为False)布尔值指定是否在原地修改索引如果设置为True则会直接在原索引上进行修改而不返回新的索引如果设置为False则返回一个新的索引对象。 885-3、功能 改变索引的名称它可以用于DataFrame或Series的索引帮助用户更好地标识和管理数据。 885-4、返回值 返回一个布尔值 如果inplaceFalse(默认)返回一个新的Index对象具有更新后的名称。如果inplaceTrue则返回None并直接在原索引上进行修改。 885-5、说明 无 885-6、用法 885-6-1、数据准备 无 885-6-2、代码示例 # 885、pandas.Index.rename方法 import pandas as pd # 创建一个索引 index pd.Index([1, 2, 3], nameold_name) # 使用rename方法 new_index index.rename(new_name) print(new_index.name) print(index.name) # 使用inplace参数 index.rename(another_name, inplaceTrue) print(index.name) 885-6-3、结果输出 # 885、pandas.Index.rename方法 # new_name # old_name # another_name 二、推荐阅读 1、Python筑基之旅 2、Python函数之旅 3、Python算法之旅 4、Python魔法之旅 5、博客个人主页
http://www.w-s-a.com/news/318889/

相关文章:

  • 联合易网北京网站建设公司怎么样网站页面开发流程
  • 2015做那些网站能致富网站建设审批表
  • 深圳 网站设计个人名片模板
  • 网站建设费用选网络专业网站在线推广
  • 天津建设网站c2成绩查询用记事本制作html网页代码
  • 织梦二次开发手机网站如何成为一名设计师
  • 网站公司建设网站镇江本地网站
  • 网页设计后面是网站建设吗凡客诚品的配送方式
  • 万链网站做的怎么样?深圳门户网站开发
  • 在线设计工具的网站怎么做wordpress多语言版本号
  • 建设购物网站要求优秀网站大全
  • 平顶山做网站公司用源码网站好优化吗
  • 网上电商游戏优化大师手机版
  • 个人微信公众号怎么做微网站吗网站域名需要续费吗
  • 有效的网站建设公丹阳做网站的
  • 哪些行业做网站的多学企业网站开发
  • 外贸seo网站制作网站备案的流程
  • 网站布局教程wordpress 侧边栏位置
  • 谁有手机网站啊介绍一下dedecms 网站重复文章
  • 博客网站快速排名微信机器人免费版wordpress
  • 孝感网站建设xgshwordpress网站基础知识
  • 百度为什么会k网站长沙做网站找哪家好
  • 揭阳商城网站建设新闻稿发布平台
  • 电商网站建设免费在线优化网站
  • 厦门网站建设咨询挣钱最快的小游戏
  • 郑州网站网络营销莱芜雪野湖别墅
  • 安装iis8 添加网站河南省建设执业资格中心网站
  • 个人网站电商怎么做广州市营销型网站建设
  • 空间站做网站什么版本wordpress 勾子
  • win7网站服务器制作软件网站浏览图片怎么做的