TST: Finish groupby aggregate cleanup
Continuation of #18931 

* Converted class-based setup fixtures to pytest fixtures
* Consolidated all imports at the top of the file

`test_aggregate_item_by_item` has an unused DataFrame in the test so cleaned that up as well

Please let me know if you need me to make any changes.