Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.python > #5706

[Python-de] Verstaendnisproblem

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From eilfh <eilfh156@posteo.de>
Newsgroups de.comp.lang.python
Subject [Python-de] Verstaendnisproblem
Date Thu, 11 Feb 2021 12:35:25 +0100
Lines 37
Message-ID <mailman.1089.1613043335.7193.python-de@python.org> (permalink)
References <2763401.e9J7NaK4W3@host.fritz.box>
Mime-Version 1.0
Content-Type text/plain; charset="iso-8859-1"
Content-Transfer-Encoding quoted-printable
X-Trace news.uni-berlin.de k1O10sncvs/YUg4jRflGMQR2xkU1Lk2UttKlVjF3jZqw==
Return-Path <eilfh156@posteo.de>
X-Original-To python-de@python.org
Delivered-To python-de@mail.python.org
Authentication-Results mail.python.org; dkim=pass reason="2048-bit key; unprotected key" header.d=posteo.de header.i=@posteo.de header.b=aKPnXVn/; dkim-adsp=pass; dkim-atps=neutral
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1613043333; bh=YDWxNEg+2UWCW5FDMzG6YlK6NJ6FVzREALC992BGdpM=; h=From:To:Subject:Date:From; b=aKPnXVn/P2xuIVgyXntK3s2tH0DCGSSCNyEBXardfb5BY9FVOeT5SH80x/BzGd2Q6 QWBUy8IOtK/Mo2kk1ml+ucjTf4R9NUSlsM74qIZ+lZYXIok45YhYN7guZqG+51Ap9g Lm1S1G0197dF71nI6I2f2I2EEGxCvaQwG66Pl8FlGZQ+vrZljb7iUW6KOF84b7PojX ALSqht/a5lNAyBdeqSgywbYjpJv303QDuR43SBG1+Q2TtBdpx0jbw689EXWsVjr8zC eowWnZrIu29yiGWWOg/4nq7KthdyAq3XaRpTzqnBcl7pcKnns/4m3O3zZ8RiiBCVH8 nWe0sk6tUi55Q==
X-BeenThere python-de@python.org
X-Mailman-Version 2.1.34
Precedence list
List-Id Die Deutsche Python Mailingliste <python-de.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe>
List-Archive <https://mail.python.org/pipermail/python-de/>
List-Post <mailto:python-de@python.org>
List-Help <mailto:python-de-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <2763401.e9J7NaK4W3@host.fritz.box>
Xref csiph.com de.comp.lang.python:5706

Show key headers only | View raw


Hallo, 

bin noch Anfänger in python,
vielleicht sieht ein Profi mit einem Blick, wo mein Fehler liegt 


Bsp.

x1 = df.loc[df.A == '7', 'Z1']
#print(x1)   # okay, z.Bsp. 99
x2 = 120
x3 = 3
x4 = df.loc[df.A == '8', 'Z1']
#print(x4)   # okay, z.Bsp. 77


d1 = x2 - x1     # okay 21
d2 = x4 - x3     # okay 74

aber:
d3 = d2 - d1     # --->  NaN
oder
d4 = (x2 - x1 + x4 - x3) # ---> NaN


ich hab schon einige "Klimmzüge" gemacht,
bin aber bisher an dieser vermeintlichen Banalität gescheitert



Vielen Dank im Voraus

Frank



Back to de.comp.lang.python | Previous | Next | Find similar


Thread

[Python-de] Verstaendnisproblem eilfh <eilfh156@posteo.de> - 2021-02-11 12:35 +0100

csiph-web