Мой тест показывает, что он может
public class Test1 {
Test1() {
throw new RuntimeException();
}
@Override
protected void finalize() throws Throwable {
System.out.println("finalized");
}
public static void main(String[] args) throws Exception {
try {
new Test1();
} catch (RuntimeException e) {
e.printStackTrace();
}
System.gc();
Thread.sleep(1000);
}
}
печатать
java.lang.RuntimeException
at test.Test1.<init>(Test1.java:13)
at test.Test1.main(Test1.java:24)
finalized
на Java HostSpot Client VM 1.7.0_03
IIUC
pd.Series(d).loc[x]
Out[47]:
3 [1, 6, 9]
8 [5, 10]
9 [1, 3, 6]
dtype: object
При необходимости список
pd.Series(d).loc[x].tolist()
Out[68]: [[1, 6, 9], [5, 10], [1, 3, 6]]