Examples
import numpy as np
import pandas as pd
df = pd.DataFrame(np.array(([2, 3, 4], [5, 6, 7])),
index=['tiger', 'lion'],
columns=['one', 'two', 'three'])
# select columns by name
df.filter(items=['one', 'three'])
# select columns by regular expression
df.filter(regex='e$', axis=1)
# select rows containing 'ion'
df.filter(like='ion', axis=0)