数据分析-pandas

数据分析库pandas之Series,Dataframe: replace函数及map函数,

Dataframe库使用replace函数(且不支持method和limit参数),且map不是Dataframe的方法,其实是Series的方法。

duplicated :得到重复的行索引(布尔值)、keep参数(是否保留):‘first‘,'last',False、inplace:是否替换

drop_duplicated():删除重复的行索引

drop():删除具体的行索引

rename:index行索引、columns列索引,level参数

df.all():得到行的布尔值。用于清洗不满足的数据

df.std():求标准差。

猜你喜欢

转载自www.cnblogs.com/zhuyafeng/p/11696007.html