Reputation: 195
And, I wanted to convert into this column
I want to replace zero with number. So, how can I do that using pandas python?
Upvotes: 1
Views: 57
Reputation: 323326
Try with groupby
out = df.groupby(['col1','col2','col3'],as_index=False).max()
Upvotes: 3