索引操作
2021-8-6
| 2023-8-6
0  |  阅读时长 0 分钟
type
status
date
slug
summary
tags
category
icon
password
Property

 

索引对象Index

Series和DataFrame中的索引都是Index对象
 
索引对象不可变,保证了数据的安全
 
常见的Index种类
  • Index,索引
  • Int64Index,整数索引
  • MultiIndex,层级索引
  • DatetimeIndex,时间戳类型
 
 
 

索引的一些基本操作

  • 重新索引

重新索引

 
 

 
 
 
 

 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 

 
 
 
 
 

高级索引

  • loc 标签索引
  • iloc 位置索引
  • ix 标签与位置混合索引
  • Pandas
  • Pandas数据结构对齐运算
    目录