REF: remove _get_attributes_dict
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry

nice to remove this! Unfortunately it seems this was used by partd (dask), see dask/partd#57. So I would maybe revert this for a while to give time to have this fixed. 
