I have a dataframe which has multiple ID\'s and every row has a date. Let\'s take an example of one ID
Now what I want is to create a new data frame such that