'How can I get a list of regular entries of the same size for pandas dataframe?

I have a dataframe with the columns [date, name, size]

I'd like to get a dataframe with the columns

[name, type, size, dates]



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source