I have a pandas dataframe like this:
title author year type
0 t1 a1 1980 article
1 t2 ['a2', 'a3', 'a4'] 1983 article
2 t3 a5 1982 article
3 t4 a6 1977 article
4 t5 ['a7','a8'] 2011 book
This is a short example, the original is more big.
And I need a dataframe like this:
title author year type
0 t1 a1 1980 article
1 t2 a2 1983 article
2 t2 a3 1983 article
3 t2 a4 1983 article
4 t3 a5 1982 article
5 t4 a6 1977 article
6 t5 a7 2011 book
7 t5 a8 2011 book
Note that lists have different number of elements