索引
import pandas as pd
ser=pd.Series(range(0,10,2))
print(ser)
0 0
1 2
2 4
3 6
4 8
dtype...查询数据
import pandas as pd
stu_dic={
'name':['a','b','c','d','e','f','g','h'],
'age':[18,15,45,56,89,78,45,12...m
2 c 45 m
3 d 56 f
4 e 89 f
5 f 78 f
6 g 45 m
7 h 12 m
查询数据前...* *
name age sex
3 d 56 f
4 e 89 f
5 f 78 f
6 g 45 m
7 h 12 m
查询指定的行...15 m
2 c 45 m
3 d 56 f
查询指定的列
student[['name','age']]
如果查询多个列,必须使用双重中括号
# 查询name,age列