How to Generate Features by Group