2020年5月10日
摘要: 二维数组的定位: 数据分析的数组函数中(Series和DataFrame……),常常会涉及到轴参数的设置:axis=0、1。1.当 axis=0 == axis=index,意味着:数组中的所有元素(包括行索引(index)) 2.当 axis=1 == axis=columns,意味着:数组中的所 阅读全文
posted @ 2020-05-10 09:36 jvincent 阅读(1053) 评论(0) 推荐(0) 编辑
摘要: set_index() 函数原型:DataFrame.set_index(keys, drop=True, append=False, inplace=False, verify_integrity=False) 参数解释: keys:列标签或列标签/数组列表,需要设置为索引的列 drop:默认为T 阅读全文
posted @ 2020-05-10 08:38 jvincent 阅读(274) 评论(0) 推荐(0) 编辑
摘要: reset_index( level: Union[Hashable, Sequence[Hashable], NoneType] = None, drop: bool = False, inplace: bool = False, col_level: Hashable = 0, col_fill 阅读全文
posted @ 2020-05-10 01:25 jvincent 阅读(259) 评论(0) 推荐(0) 编辑
摘要: reindex( labels=None, index=None, columns=None, axis=None, method=None, copy=True, level=None, fill_value=nan, limit=None, tolerance=None, ) Docstring 阅读全文
posted @ 2020-05-10 01:20 jvincent 阅读(280) 评论(0) 推荐(0) 编辑