I have a table which looks like this -
date name values items
01-03-2019 xyz 900 NaN
NaN NaN 900 brush
02-03-2019 abc 1200 NaN
NaN NaN 900 paste
NaN NaN 300 floss
and desired output is -
date name values items
01-03-2019 xyz 900 brush
02-03-2019 abc 1200 paste, floss
I know I can use np.where() to make the values of each item NaN, but I don't know how I should go about the concatenation and then move the result up alongside the name.