Categorical: implement from_codes(...) and change docs accordingly