Closed antonio-yu closed 1 year ago
How about unchop
?
@pwwang unchop is very fast. Only 2s taken
You should use unchop
in your case. See https://tidyr.tidyverse.org/reference/chop.html#ref-examples
In your case, you are unwrapping python lists not tibbles/dfs.
unnest
has extra steps to parse tibbles.
Thanks ,@pwwang.
I was a little bit confused about unchop and unnest ,It seems they both could approach the same result.
The unnest returns the same col name which I dont need to rename , but unchop returns a sequential col name such as name$x
.
I would try more to feel the difference.
Close it for now.
unnest
takes very long time compared to the pandas methods. For example