[python-package] make a shallow copy when replacing categorical features with codes (fixes #4596) (#5225)
Attach a file by drag & drop or click to upload