Hi Albert, That's a good question. AFAIK this is currently not possible (or at least it's not directly integrated in the public C++/Python kernel), but this sounds like a useful functionality to add (eg also to cover pandas functionality to convert to categorical dtype with given categories). Would you like to open a JIRA for it?
Joris On Wed, 9 Jun 2021 at 09:58, Albert Villanova del Moral <[email protected]> wrote: > > Hello, > > I would like to know if it is possible to pass the keys (and in a specific > order) to dictionary_encode, so that the resulting dictionary contains these > keys in that order. > > Thanks. > Regards, > Albert. > > -- > Albert Villanova del Moral > Machine Learning Engineer @Hugging Face
