I have a dataframe (|documents| x |Entities|) with some entities in each row. For example:
|documents| x |Entities|
0 [Q80976, Q43274, Q9682] 1