会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
jayson
博客园
首页
新随笔
联系
管理
2020年7月16日
pandas中的 where 和mask方法
摘要: where 表示不满足条件的,被设置为指定值 mask 与where相反,满足条件的数据,被设置为指定值 示例代码: import pandas as pd import numpy as np # 生成数据: df = pd.DataFrame(np.arange(15).reshape((5,
阅读全文
posted @ 2020-07-16 11:50 jaysonteng
阅读(2228)
评论(0)
推荐(0)
编辑