标签:core bubuko ref generated class eset 分享 strong href
官方定义:
使用一个或多个现有列设置索引, 默认情况下生成一个新对象
DataFrame.set_index(keys, drop=True, append=False, inplace=False, verify_integrity=False)
单索引:
复合索引:
DataFrame.
reset_index
(level=None, drop=False, inplace=False, col_level=0, col_fill=‘‘)
好复杂啊
http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.reset_index.html
示例:
pandas set_index() reset_index()
标签:core bubuko ref generated class eset 分享 strong href
原文地址:https://www.cnblogs.com/bafenqingnian/p/9380360.html