【发布时间】:2015-12-09 05:25:03
【问题描述】:
我的数据框看起来像:
Tester Type Subject Type Time 1 2 3
TType1 SType1 Day 1 11 2 1
TType1 SType2 Day 1 3 2 13
TType1 SType1 Day 2 2 3 15
TType2 SType3 Day 2 1 4 3
TType3 SType3 Day 2 2 3 4
TType1 SType1 Day 1 7 2 2
TType2 SType1 Day 2 2 6 7
我正在尝试在主题类型列中查找所有 SType 1,并将其替换为测试人员类型中的值。所以,我的输出看起来像:
Tester Type Subject Type Time 1 2 3
TType1 TType1 Day 1 11 2 1
TType1 SType2 Day 1 3 2 13
TType1 TType1 Day 2 2 3 15
TType2 SType3 Day 2 1 4 3
TType3 SType3 Day 2 2 3 4
TType1 TType1 Day 1 7 2 2
TType2 TType2 Day 2 2 6 7
【问题讨论】:
-
到目前为止你尝试了什么?这个网站上有很多资源可以执行这样的操作。