You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe that could use some strategy drawn from the reindexing/filling functions, but as I am not a Pandas specialist, I am not sure this would use the most efficient function to perform this task.
Let's say we have
df
var1 var2
0 a,b,c x
1 d,e,f y
df.desired_function("var1")
var1 var2
0 a x
1 b x
2 c x
3 d y
4 e y
5 f y