- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
# -*- coding: utf-8 -*-
def get_custom_table_rows(df, rnames=None):
if not rnames:
rnames = []
return df.iloc[
[df.index.get_loc(
(lambda rn: rn.encode('utf-8')
if isinstance(rn, unicode) else rn)(rn))
for rn in rnames]]