社区
DataWindow
帖子详情
怎样获取计算列的值?
zqbchina
2003-10-10 07:31:03
怎样获取计算列的值,而不是表达式呢?
...全文
83
4
打赏
收藏
怎样获取计算列的值?
怎样获取计算列的值,而不是表达式呢?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
srj911
2003-10-11
打赏
举报
回复
dec ld_number
ld_number = dw_1.object.compute_1[1]
klbt
2003-10-10
打赏
举报
回复
计算列必须有英文名。
取值方法用getitem系列函数
coordinate
2003-10-10
打赏
举报
回复
除了上面的方法,用GetItemXXX(计算列名,行号)
yanghongfeng
2003-10-10
打赏
举报
回复
dec ld_number
ld_number = this.object.计算列名[1]
【pandas】根据多个
列
对dataframe进行划分,在划分结果上进行
计算
;使用loc,根据多个
列
的
值
获取
datafarme子集和某单元格的
值
''' 知识点: 1. groupby的使用: a.根据大于一个的条件对df进行划分: df.groupby([df['date'],df['class']]) b.遍历groupby结果:for key, group in df_1 c.对groupby结果进行聚类
计算
:sum = group['grade'].sum() 2.loc的使用: a.根据大于一个的
列
值
获取
dataframe的子集,并
获取
/修改子集的某一...
python返回上一行,
获取
上一行的
值
并
计算
新
列
pandas python
Is there a way to look back to a previous row, and calculate a new variable? so as long as the previous row is the same case what is the (previous change) - (current change), and attribute it to the ...
如何取数据窗口中分组区
计算
列
的
值
?
今天同事问我,如何取数据窗口中分组区
计算
列
的
值
。 这个问题看似复杂,其实简单。就像取明细区
计算
列
的
值
那样,直接取就可以。dw_1.getitemnumber(row,compute_1)//或者用点标记法 可能朋友会问,那row应该用几?是这样的,假如第1、2行属于第一组,第3行属于第二组。那用dw_1.getitemnumber(1,compute_1)和dw_
数据窗口中某行
计算
列
的
值
// 得到数据窗口中
计算
列
的
值
IF dw_1.Describe(column_name + .type) = compute THEN ls_value = dw_1.Describe("Evaluate(" + dw_1.Describe(column_name + .expression) + ","+string(row)+")")END IF
python返回上一行_
获取
上一行的
值
并
计算
新
列
pandas python
Is there a way to look back to a previous row, and calculate a new variable? so as long as the previous row is the same case what is the (previous change) - (current change), and attribute it to the ...
DataWindow
611
社区成员
20,469
社区内容
发帖
与我相关
我的任务
DataWindow
PowerBuilder DataWindow
复制链接
扫一扫
分享
社区描述
PowerBuilder DataWindow
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章