isna 函数确定数据帧中缺失的值。...我们可以使用特定值、聚合函数(例如均值)或上一个或下一个值。...df[['Geography','Gender','Exited']].groupby(['Geography','Gender']).mean()
13.Groupby与聚合函数结合
agg 函数允许在组上应用多个聚合函数...df[['Geography','Exited','Balance']].sample(n=6).reset_index(drop=True)
17.将特定列设置为索引
我们可以将数据帧中的任何列设置为索引...ser= pd.Series([2,4,5,6,72,4,6,72])
ser.pct_change()
29.基于字符串的筛选
我们可能需要根据文本数据(如客户名称)筛选观测值(行)。