There's already an (old) issue for this https://issues.apache.org/jira/browse/ARROW-1574
Here's another related issue https://issues.apache.org/jira/browse/ARROW-4097 I agree both of these would be useful On Wed, Jun 9, 2021 at 6:10 AM Joris Van den Bossche <[email protected]> wrote: > > 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
