Say I have a dataframe df
which looks like the below:
I can query the dataframe using pandas .query
to return specific rows as below:
df.query('Data == "05h"')
Is it possible to amend the above to return rows without hard coding the 0
before 5h
, so it essentially returns all rows which contains 5h
in the string?
Any help appreciated.