From user-return-1266-archive-asf-public=cust-asf.ponee.io@arrow.apache.org Wed Jun 9 07:58:00 2021 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mxout1-ec2-va.apache.org (mxout1-ec2-va.apache.org [3.227.148.255]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id 01AF518063F for ; Wed, 9 Jun 2021 09:58:00 +0200 (CEST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-ec2-va.apache.org (ASF Mail Server at mxout1-ec2-va.apache.org) with SMTP id 2B6734160C for ; Wed, 9 Jun 2021 07:57:59 +0000 (UTC) Received: (qmail 12943 invoked by uid 500); 9 Jun 2021 07:57:58 -0000 Mailing-List: contact user-help@arrow.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@arrow.apache.org Delivered-To: mailing list user@arrow.apache.org Received: (qmail 12932 invoked by uid 99); 9 Jun 2021 07:57:58 -0000 Received: from spamproc1-he-de.apache.org (HELO spamproc1-he-de.apache.org) (116.203.196.100) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jun 2021 07:57:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamproc1-he-de.apache.org (ASF Mail Server at spamproc1-he-de.apache.org) with ESMTP id 82F331FF47B for ; Wed, 9 Jun 2021 07:57:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamproc1-he-de.apache.org X-Spam-Flag: NO X-Spam-Score: 0.211 X-Spam-Level: X-Spam-Status: No, score=0.211 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.2, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamproc1-he-de.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=huggingface-co.20150623.gappssmtp.com Received: from mx1-he-de.apache.org ([116.203.227.195]) by localhost (spamproc1-he-de.apache.org [116.203.196.100]) (amavisd-new, port 10024) with ESMTP id Kt_CZkUoJXrA for ; Wed, 9 Jun 2021 07:57:57 +0000 (UTC) Received-SPF: Permerror (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::12a; helo=mail-il1-x12a.google.com; envelope-from=albert@huggingface.co; receiver= Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id A87417FFA8 for ; Wed, 9 Jun 2021 07:57:56 +0000 (UTC) Received: by mail-il1-x12a.google.com with SMTP id b14so23793737ilq.7 for ; Wed, 09 Jun 2021 00:57:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huggingface-co.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=85QUgUEGjEml09vRZJwNlMopQ75dOJ1GQrN9t8pUGbo=; b=AUfaZ2Pv4MsvJPq7J64Cghz60J4pdhZ/Gddnbj2ThWP5ein4iwfRH2NRtuxyowpGVH O4EiQG7B2D/599J4hrO65xGswUWL3GfKd/vvI3H1KBfOfrPPbMiJVWTI1O4HssGcM42a BRTtfXcI6jcDvcYlFlwBsSnY1kVy0Vkt2NykX9J0ILhnFG8g1ZRG2JQxrqygzpjrYlT0 ngT/sdWCl4DUHt6Ufn7rSh7OisPqmiMf/YH7rb4Aia7kbiq2gWc3XXCd2aIFOYacVtzv ljZnkCknHi9Fy6jqF1drXhb5YZY91EfalJ+GeUBgiEJO1rUG/WV2kG+pz1KEzxP93r8H Iqlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=85QUgUEGjEml09vRZJwNlMopQ75dOJ1GQrN9t8pUGbo=; b=kK/TshqCRleQEeDiAmi8JDOizEOBqDEdg5SeNlmgoG5fy02MI7qoQMRifpbAb8ZixC g/MBszbJuORSniG9Mf3EwO87iTnCsXZbMH5Tl/X8FCKmBJF21JayWhU/NCXrIie1AjLN ufE4uAxwQDJWi5CpajSdpLLKPjWdvAwGeKNI05b54qSm98rT2H/iD+c761JorvM+MHye 8mTNF9NmyFKIvi9+pEMUHwZkj+YagHRZhhCXf+Y1wb/YnQEehLobcMu/c5SC/k5lFx1w Gc7PjPi8cX0Dfad03+NTaR9Gn2JZRhYgwVmXPt+SnDMStZLmhbNbsct9+x73vj2BRFjU a5ig== X-Gm-Message-State: AOAM533GeGzWDv9LWdC7Z49ggBSN2xJvykmAbSH35GgVEm8czKsmRMqs kDBkGjcgiWFAEjtN3U4tVfbnpU26/KWVVw33L7W8GjoCgIE= X-Google-Smtp-Source: ABdhPJz9T5Kq4XXh52SafTG6ereo+RDU8um3ZRPvY5r8VFIOSIcsFgjQSf9Gg2+/fRjrL1Av8XCll5XZErg2FnfvBbs= X-Received: by 2002:a92:c7b0:: with SMTP id f16mr21782706ilk.169.1623225474966; Wed, 09 Jun 2021 00:57:54 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Albert Villanova del Moral Date: Wed, 9 Jun 2021 09:57:44 +0200 Message-ID: Subject: Specific key order in dictionary_encode To: user@arrow.apache.org Content-Type: multipart/alternative; boundary="000000000000d3731605c450a17a" --000000000000d3731605c450a17a Content-Type: text/plain; charset="UTF-8" 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 --000000000000d3731605c450a17a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 c= ontains these keys in that order.

Thanks.=C2=A0
Regards,
Albert.

--
<= div dir=3D"ltr" data-smartmail=3D"gmail_signature">
Albert = Villanova del Moral
Machine Learning Engineer @Hugging Face
<= /div>
--000000000000d3731605c450a17a--