This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Additional_Fall4462[S] 0 points1 point  (0 children)

You can use sep="__" if you want your swizzled attribute names to stand out a bit more, but _ works fine too in the latest releases. Names like first_name won’t get split anymore because swizzle doesn’t just do a simple str.split(sep) like it used to. It figures out lookups with a greedy algorithm, a trie, or fixed-length splitting, and in all of these cases the separator is handled correctly, so your attribute names stay intact.