我有这样的数据帧:的Python //熊猫 - 选择的最后一年各指数
score year ...
index
0 123 2015
0 5354 2016
0 4314 2014
12 4542 2018
12 4523 2017
13 123 2014
13 123 2012
13 231 2016
...
我要选择仅去年每个索引,所以它会看起来像这样:
score year ...
index
0 123 2016
12 4542 2018
13 231 2016
...
有人可以照亮它吗?
希望你喜欢编辑 – Dark
@Bharathshetty,是的,谢谢! :) – MaxU