这是我正在使用的数据的链接。
我尝试根据我想要的列( 和 )创建一个组cuepos
,targetpos
但是soa
当我列出这些组时,它似乎也在创建包含其他一些列的组......
groups = t.groupby(['cuepos', 'targetpos', 'soa'])
for name, _ in groups:
print name
输出:
(-89, -89, -89.41139261318807)
(-88, -88, -88.44728835230345)
(-88, -88, -88.20648583606493)
(-87, -87, -87.77339640061896)
(-86, -86, -86.8637199297012)
(-85, -85, -85.50514526170076)
(-83, -83, -83.87935779179833)
(-83, -83, -83.86953491773222)
(-81, -81, -81.43570407709822)
(-80, -80, -80.70639872201482)
(-80, -80, -80.38454772926528)
(-79, -79, -79.81516051155803)
(-75, -75, -75.83933409447087)
(-74, -74, -74.53528962061156)
(-73, -73, -73.10397238440302)
(-70, -70, -70.33208101764106)
(-64, -64, -64.18024404177129)
(-61, -61, -61.969216551968344)
(-61, -61, -61.89154280549519)
(-61, -61, -61.81223645812457)
(-61, -61, -61.80055105439692)
(-59, -59, -59.81551441456813)
(-57, -57, -57.67934478380107)
(-53, -53, -53.91038834185852)
(-51, -51, -51.35605559139145)
(-48, -48, -48.63443042074468)
(-48, -48, -48.026567177299825)
(-44, -44, -44.84750981999042)
(-44, -44, -44.20816797871376)
(-43, -43, -43.97185684796753)
(-39, -39, -39.03132145644588)
(-37, -37, -37.09246448040565)
(-37, -37, -37.06406445785262)
(-36, -36, -36.89551705610748)
(-34, -34, -34.23312940622742)
(-33, -33, -33.771084303661524)
(-31, -31, -31.183030415916534)
(-29, -29, -29.062383175092265)
(-22, -22, -22.1763042325164)
(-17, -17, -17.51138905398824)
(-14, -14, -14.673170146200675)
(-9, -9, -9.389620131659427)
(-9, -9, -9.28109130634627)
(-8, -8, -8.871025817651997)
(-8, -8, -8.47526860623043)
(-7, -7, -7.484697635519495)
(-3, -3, -3.265563116265213)
(-2, -2, -2.842961251214575)
(1, 1, -0.1)
(1, 1, 0.1)
(1, 1, 0.4)
(1, 2, -0.1)
(1, 2, 0.4)
(2, 1, -0.1)
(2, 1, 0.4)
(2, 2, -0.1)
(2, 2, 0.1)
(2, 2, 0.4)
(6, 6, 6.928400268960042)
(8, 8, 8.476818809273727)
(11, 11, 11.225720357570507)
(13, 13, 13.949059199458294)
(17, 17, 17.272663104264836)
(18, 18, 18.548979295124248)
(21, 21, 21.075945669054835)
(22, 22, 22.101344720547228)
(22, 22, 22.36405009971824)
(24, 24, 24.658480906080996)
(27, 27, 27.977154868918745)
(33, 33, 33.75660016684323)
(49, 49, 49.59296862775889)
(51, 51, 51.09435632596291)
(52, 52, 52.107845391762766)
(54, 54, 54.22026217046835)
(54, 54, 54.55461208382168)
(56, 56, 56.92397800238861)
(57, 57, 57.15634257840432)
(57, 57, 57.490226928649264)
(57, 57, 57.82030543311612)
(58, 58, 58.20496727209113)
(58, 58, 58.44217165553367)
(58, 58, 58.591804845872765)
(58, 58, 58.84514017314996)
(60, 60, 60.15474896731822)
(60, 60, 60.49526399943247)
(60, 60, 60.621239605283456)
(61, 61, 61.73542327989246)
(61, 61, 61.882729155824705)
(63, 63, 63.15716022529575)
(65, 65, 65.62684954629724)
(67, 67, 67.32622273875754)
(68, 68, 68.72997170017184)
(71, 71, 71.64012395084114)
(71, 71, 71.87357582509455)
(71, 71, 71.91237771102328)
(72, 72, 72.87756472051248)
(73, 73, 73.23547239962096)
(75, 75, 75.20111322246554)
(76, 76, 76.37312687962122)
(78, 78, 78.39727821292199)
(79, 79, 79.27674426299386)
(80, 80, 80.22644745900354)
(82, 82, 82.38562004739285)
(82, 82, 82.75922122217577)
(85, 85, 85.19181215842043)
(85, 85, 85.6896980533089)
(85, 85, 85.84141277449113)
(87, 87, 87.21598891172931)
(87, 87, 87.60810304014197)
(87, 87, 87.80910737578778)
所需的组位于中间(看起来像 的组(1, 1, -0.1)
)。这又是什么东西?我在这里做错了什么?