Python pandas slice dataframe by multiple index ranges

What is the pythonic way to slice a dataframe by more index ranges (eg. by 10:12 and 25:28)? I want this in a more elegant way: df = pd.DataFrame({'a':range(10,100)}) df.iloc[[i for i in range(10...