I have a large database in which I want to select all the columns that meet a certain criteria:
My data looks like the following:
Name a b c
target-01 5196 24 24
target-02 5950 150 150
target-03 5598 50 50
object-01 6558 44 -1
object-02 6190 60 60
I want to select all the data whose Name starts with target.
So the selected df would be:
target-01 5196 24 24
target-02 5950 150 150
target-03 5598 50 50
I am reading the data using:
data = pd.read_csv('catalog.txt', sep = '\s+', header = None, skiprows =1 )
How can I select the data I want?