Tag: transform
Pandas: Unexpected NaN values after applying a transformation function on grouped DataFrame