0

I have a dataframe that looks like this (but with thousands of rows):

id date rate1 rate2 rate3
1 2012-01-25 10 NA NA
2 2012-02-25 12 NA NA
2 2012-02-25 NA 15 NA
3 2013-03-25 NA 18 NA
3 2013-03-25 NA NA 17
3 2013-03-25 11 NA NA

I'd like it to look like this:

id date rate1 rate2 rate3
1 2012-01-25 10 NA NA
2 2012-02-25 12 15 NA
3 2013-03-25 11 18 17

I tried the solution in Merge Rows by ID and Date but it doesn't suit the problem because I don't want boolean results.

Any help would be great, thanks

llb1706
  • 49
  • 5

0 Answers0