arrow-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wes McKinney <wesmck...@gmail.com>
Subject Re: Specific key order in dictionary_encode
Date Wed, 09 Jun 2021 13:24:26 GMT
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
<jorisvandenbossche@gmail.com> 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
> <albert@huggingface.co> 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

Mime
View raw message