convert Int64Index to Int | Newbedev
newbedev.com › convert-int64index-to-intconvert Int64Index to Int. The answer to your specific question is that index1 is an Int64Index (basically a list), even if it has one element. To get that one element, you can use index1 [0]. But there are better ways of accomplishing your goal. If you want to remove all of the rows in the "bad" groups, you can use filter: