I have the following dataframe:
df = pd.DataFrame({
'tags': [
[{'id': 1401}, {'id': 1801}],
[{'id': 502}, {'id': 703}, {'id': 1801}],
[{'id': 1801}]
]
})
I am only interested in the 'id': 1801 value in the 'tags' column and would like to create a new column which contains True if 'id': 1801 is present or False if it is not.
Any help would be greatly appreciated