1 min readAug 22, 2017
A few things. It’s unheard of to refer to pandas methods as “ufuncs”. This only leads to confusion. In fact there are only a [handful of results](https://www.google.com/search?q=%22pandas+ufuncs%22&oq=%22pandas+ufuncs%22) for this on the internet.
Also, Expand
needs to be lowercased in str.split
unstack
has a fill_value
parameter that you can use instead of chaining a method.