python dataframe索引筛选_python-Pandas DataFrame:查找两列相等/相同的特定长度序列的索引值...
我有一个熊猫DataFrame,其定义如下:#-*-coding:utf-8-*-importdatetimeasdtimportpandasaspddata=[[1,1],[1,1],[2,2],[2,2],[2,2],[3,3],[4,4],[4,4],[4,4],[5,5],[5,5]]df=pd.DataFrame(data,columns=['A','B'])df.index=pd.da