From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id mJ9DND/qJ2fC1QAAe85BDQ:P1 (envelope-from ) for ; Sun, 03 Nov 2024 21:25:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id mJ9DND/qJ2fC1QAAe85BDQ (envelope-from ) for ; Sun, 03 Nov 2024 22:25:19 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=adamkovic.org header.s=fm1 header.b="T/yMsTKq"; dkim=pass header.d=messagingengine.com header.s=fm3 header.b="T kWravV"; dmarc=pass (policy=none) header.from=adamkovic.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1730669119; a=rsa-sha256; cv=none; b=I3y4KwR4m4NCTSpO5hU2x3lHWw5KjsxInoza4xhddby8qgBrBhwJL6+cVVvweWF6cSOBFE Cs2Y7As7DLUx6yK239RKOLoVmyyEYaJO/DkBY21fNNwAW4kpUaTty+BokMtuPA36QnxTVw idQxMHQFyD67vhqI932KNnL8GYGYCcgSD98NlFTw4KOE082+5CbOlGItzq1BpLhK+eiOqB P4Di8Jp8z/cL138I07hRVuB0kIwX3enn74jDlNrbSYH2QLn4ac6UJOVr/8es41g5bSuksj 7tjpd3hyHaY7p8Ll5mFIbAq5NSQwk/qaMvqB3d/E7q5mNaUdwNZp2+cuZ/mt3A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=adamkovic.org header.s=fm1 header.b="T/yMsTKq"; dkim=pass header.d=messagingengine.com header.s=fm3 header.b="T kWravV"; dmarc=pass (policy=none) header.from=adamkovic.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1730669119; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=h3keaR6IhsBU9l+/WxuVMZC+uX2d+Q50N9ChQD5FH1s=; b=GVhMX6IX5joFljrlwHuIRLNAJTAQ2Im13PE44bz+ZfCyI5UfYbGnzCYAP3tu7l2ysYQ1kP X+eJjtGMLNBMXrarmWs1H/aDo3EfNWsU4p4ooEFniFiT/4c7b7qYWq68ucpU0EY13Z2l5K yTFrZ4hffNV5PdlW/r4KYlts3aNqklXTB/KTGlTGISYSQB5/Ej0Y7gBq6rT/IfrGn4P6dd qJQY2EXPV4AF3uQxWmvcMf50wcMuI5gKs5CaZ8T4MUm+HACCbRCgAn+RAWZosCGKaJHVSq JvyWpOTXuM8JtgLjuCDxIF6uyt5z+vABmEYF7Cw+Pe1UyrV0925iAd0SeBr7yw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D8087148C for ; Sun, 03 Nov 2024 22:25:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t7i5K-0006ic-GK; Sun, 03 Nov 2024 16:24:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t7i5I-0006iK-F6 for emacs-orgmode@gnu.org; Sun, 03 Nov 2024 16:24:32 -0500 Received: from fout-b5-smtp.messagingengine.com ([202.12.124.148]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t7i5G-0008Kv-F1 for emacs-orgmode@gnu.org; Sun, 03 Nov 2024 16:24:32 -0500 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id A105611400D9; Sun, 3 Nov 2024 16:24:26 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Sun, 03 Nov 2024 16:24:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamkovic.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm1; t=1730669066; x=1730755466; bh=h3keaR6IhsBU9l+/WxuVMZC+uX2d+Q50 N9ChQD5FH1s=; b=T/yMsTKq5qw6yfZXbXiftrcpxcU7Ru8PQE2qOxeFkrxNg44n MEe2BFbTkqQ3MmSgtG3G0NfP4lPPWiE3In88Im5tPlUd8udLHcOPCT1UEBe8vpN9 8mcP72uJNudLblEJovLSAnTygtnXfHFNPVSYE8SvweWh39SdI9dfyXOP2LT7/Qmb k5Bc2zhzxoMrOqelQq7daxSLNQuAYaKgZBHskIhci0uoICmYBFcqm0iNAl4zpRwz kXwpeghZTnukP5SggoYdiZ7+ljpgnVDqaJQj8yVz8gIep7l/OGbCHoX8XB15g6lp VzLrVu66NS1cAvdV4dcgmSbxVuW0GXb9bhVkmg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1730669066; x= 1730755466; bh=h3keaR6IhsBU9l+/WxuVMZC+uX2d+Q50N9ChQD5FH1s=; b=T kWravVxhn6N1pczH7DORRYTBr02YK3K03zQi1Mbll4ViwZ8qg+fcLYyYna/syqq6 h+g/11XzjHuqe6SSkxUive2kVogvIIok4G0FEjXFwcGHZy+HkMCtkvXA93alyITN 4jYGI+5Yca0/t1U7y81ORe+LSLDDHieclRa5YDTcbw6tqk5gTvg6j3xUBW+5bRHR D0bfObY5gALpaGefWNkeGaKnSMyQsekcsCSoiqqPnsS7ASoKwgy8JA+eWBkQ/YuC CbOhrSgqD0fQIwiFHjwfhvG+4rLy0WefqduFxy7d+Ymt1X1spH0szcXPseMMLLUl S8yuxkEFByjJYPy7hdDNg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdelgedgudeglecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvve fujghffffkgggtgfesthhqredttddtjeenucfhrhhomheptfhuugholhhfucetuggrmhhk ohhvihgtuceorhhuugholhhfsegruggrmhhkohhvihgtrdhorhhgqeenucggtffrrghtth gvrhhnpeeiueetheffudfghfeggeevheevvddtkefflefhueeludfgtefgffeltdfhudej geenucffohhmrghinheprggurghmkhhovhhitgdrohhrghenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehruhguohhlfhesrggurghmkhhovhhi tgdrohhrghdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpth htohepvghmrggtshdqohhrghhmohguvgesghhnuhdrohhrghdprhgtphhtthhopeihrghn thgrrhelvdesphhoshhtvghordhnvght X-ME-Proxy: Feedback-ID: i88214938:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 3 Nov 2024 16:24:25 -0500 (EST) From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: Fix "inverted" behavior of `colnames' header argument In-Reply-To: <874j4peb09.fsf@localhost> References: <874j4peb09.fsf@localhost> Date: Sun, 03 Nov 2024 22:24:23 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=202.12.124.148; envelope-from=rudolf@adamkovic.org; helo=fout-b5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -2.27 X-Spam-Score: -2.27 X-Migadu-Queue-Id: D8087148C X-Migadu-Scanner: mx12.migadu.com X-TUID: woW8+R4vr9cV Ihor Radchenko writes: > Our convention is to use [BUG] in subject like to mark bugs. That's > what M-x org-submit-bug-report does. TIL ... again. :) > What you show looks consistent with "16.4 Environment of a Code Block" > in Org manual. Oh, I see. Wow, that is /really/ confusing from the user's POV. For anyone reading in the future, to get column names in Pandas, write `:colnames no' (!) and `pd.DataFrame(VAR[1:], columns=3DVAR[0])'. Using the example above, this would be: #+HEADER: :colnames no #+HEADER: :session *Python* #+HEADER: :var INPUT =3D 20a0ea41-3669-482c-989e-d28486d5d400 #+BEGIN_SRC python import pandas as pd pd.DataFrame(INPUT[1:], columns=3DINPUT[0]) #+END_SRC =20=20 #+RESULTS: : A B : 0 10 20 : 1 30 40 Canceled. Rudy --=20 "Programming reliably -- must be an activity of an undeniably mathematical nature [=E2=80=A6] You see, mathematics is about thinking, and doing mathematics is always trying to think as well as possible." --- Edsger W. Dijkstra, 1981 Rudolf Adamkovi=C4=8D [he/him] http://adamkovic.org