In case @Pedro answer doesn't work here is official way of doing it for pandas 0.25
Sample dataframe:
>>> df = pd.DataFrame(np.array(([1, 2, 3], [4, 5, 6])),
... index=['mouse', 'rabbit'],
... columns=['one', 'two', 'three'])
one two three
mouse 1 2 3
rabbit 4 5 6
Select columns by name
df.filter(items=['one', 'three'])
one three
mouse 1 3
rabbit 4 6
Select columns by regular expression
df.filter(regex='e$', axis=1) #ending with *e*, for checking containing just use it without *$* in the end
one three
mouse 1 3
rabbit 4 6
Select rows containing 'bbi'
df.filter(like='bbi', axis=0)
one two three
rabbit 4 5 6