extract comment from partitionby docstring