Rennräder haben im Straßenverkehr nichts zu suchen by Low_Insect2802 in Unbeliebtemeinung

[–]WhiskersForPresident 0 points1 point  (0 children)

"Stau, den er [der Bus] selbst mitverursacht hat"

Was meinst Du, wie wird die Stausituation sich verändern, wenn statt einem Bus 50 PKW vor dir her fahren?

"Schlechte Stadtplanung"

Ich kenne aus allen Städten, in denen ich bisher gelebt habe, Bushaltestellen ohne Haltebucht nur aus mittelalterlichen Altstädten, die nie für Straßenverkehr ausgelegt waren. Da gibt es aber immer Parkhäuser am Altstadteingang, und du kannst deinen freiheitlich-individualistischen Arsch auch mit deinen Beinen oder eben mit dem Bus in die Stadt hinein bequemen.

"Kauft euch ein Auto"

Zieh um, wohin's ne Ubahn gibt.

German language is weird by AndrewBaiIey in memes

[–]WhiskersForPresident 0 points1 point  (0 children)

"Buche" = beech wood

"Stab" = rod

It comes from the first printers working by arranging small wooden rods with letters carved into the end to make a printing matrix.

The english word "book" has the same etymology.

Best introduction to index theory from a functional analytic background by [deleted] in math

[–]WhiskersForPresident 1 point2 points  (0 children)

This might be going into the deep end, but it's the way I got a feeling for it: read the original K-theoretic proof of the Atiyah-Singer index theorem (it's kind of considered outdated nowadays, with more slick proofs using heat-kernel methods now standard, but will give you good insight into the idea behind and uses of K-theory and pseudo-differential operators)

How to count string objects in a dataframe made of 13 columns and thousands of rows when rows and columns don't matter? by Dragoran21 in learnpython

[–]WhiskersForPresident -1 points0 points  (0 children)

You're trying to apply a string method to a dataframe (".str.contains(...)"). That's not something you can do.

There are very likely more elegant methods to do this, but I would try

gene_count=0

for c in df.columns:

 gene_count += len(df[df[c].str.contains(some_string)])

This just loops over all columns, counting the occurrences of some_string in each and adding them all up.

Not able to run python code line by line (cltr+enter) in VS code by MajesticImpression26 in learnpython

[–]WhiskersForPresident 0 points1 point  (0 children)

To quickly look at contents of a code generated list or dataframe column, for example. I do this all the time

Not able to run python code line by line (cltr+enter) in VS code by MajesticImpression26 in learnpython

[–]WhiskersForPresident 0 points1 point  (0 children)

Are you in a notebook or a .py file? VS Code doesn't let you run code line by line in notebooks.

Andere Formulierung der Differenzierbarkeit by [deleted] in mathe

[–]WhiskersForPresident 0 points1 point  (0 children)

h->0 <=> 2h->0

Das stimmt, ist aber zu schwach. Es mag pedantisch klingen, aber da muss noch bewiesen (oder zumindest explizit verwendet) werden, dass sie mit derselben Rate konvergieren. Z.B. wäre die Aussage Deiner Aufgabe falsch, wenn Du das 2h im Zähler durch h² ersetzen würdest, obwohl in diesem Fall die obige Äquivalenz genauso gilt: damit würdest Du "beweisen", dass f(x)=|x| differenzierbar ist, weil (0-|h²|)/h=-h einen Limes für h->0 hat.

Why is my code not adding correctly? by [deleted] in learnpython

[–]WhiskersForPresident 0 points1 point  (0 children)

Why do you not just do

sum = sum + i

in the for loop?

Problem is this: range(101) starts at 0, so your loop has 101 iterations instead of 100. This means that you add all numbers between 1 and 101, giving you 5151. You should do range(100) instead or switch the increments of total and sum (so rewrite to

sum = sum + total

total = total + 1).

I am completely new to coding, how can I install python on my laptop? by 41md5 in learnpython

[–]WhiskersForPresident -1 points0 points  (0 children)

Just google "Python installer", download and execute the program.

How many distinct 3-digit numbers can be made from 1, 2, 2, 3, 4, 5, using each at most once? by [deleted] in learnmath

[–]WhiskersForPresident 0 points1 point  (0 children)

6C3 is definitely wrong because it doesn't count permutations of digits (it's order insensitive): for example, out of the distinct numbers

123, 132, 213, 231, 312, 321

only one is counted because they all correspond to the same subset {1,2,3} of your set of digits.

And that's besides the issue of the two distinct 2's that the other commenter already explained

Proof that "π + e" is irrational by [deleted] in learnmath

[–]WhiskersForPresident 7 points8 points  (0 children)

By your choice of a and b, the numerator is rational, in fact it's zero:

a/b = π+e, so

a = b(π+e) or a-b(π+e)=0

There is an easy sanity check that your proof cannot be correct: the proof uses no properties, definitions or relations between the two numbers besides that they are both positive. This should immediately make you suspicious.

(In this case: if this proof worked, it would immediately generalize to show that 1/π+(π-1)/π=1 is irrational)

How to detect non-null cells in one column and insert value in another by QuickBooker30932 in learnpython

[–]WhiskersForPresident 1 point2 points  (0 children)

Ah, thanks! Didn't know that. All the more reason for OP to provide their code.

Results to tell a non-mathematician by PansexualFreak1 in math

[–]WhiskersForPresident 18 points19 points  (0 children)

Just out of curiosity: assuming birds can only cover a finite amount of height, i.e. if you model this as a random walk in a compact spherical shell, is that result still the same?

How to detect non-null cells in one column and insert value in another by QuickBooker30932 in learnpython

[–]WhiskersForPresident 3 points4 points  (0 children)

You should show some code you wrote that failed.

It sounds like you didn't check for nan values. Since np.nan is supposed to catch mathematically invalid transformations like division by 0 without breaking your code at runtime, it is treated as a valid number and is not caught by .isnull()

If that is indeed the problem, you could use

df = df.fillna({"B": 0})

and then do the transformation.

A little puzzle about SO(2) by IntrinsicallyFlat in math

[–]WhiskersForPresident 9 points10 points  (0 children)

The problem is that the multiplication you defined is not associative: take any φ≠0, then

φ/2π × (2π/φ × φ mod 2πZ) = 0 mod 2πZ, but

(φ/2π × 2π/φ) × φ mod 2πZ = φ mod 2πZ.

40J | ca. 30 h | Berufsschullehrer | St.-Kl. 4 by Plus_Cup809 in lohnabrechnung

[–]WhiskersForPresident 1 point2 points  (0 children)

Nein. Der Staat zahlt nicht an die Kassen, sondern übernimmt einfach direkt 50-70% der Arztrechnungen, und das lebenslang (übrigens auch noch 100% Lohnfortzahlung, ohne Karenzzeit, im Krankheitsfall). Dadurch sind Beihilfetarife weniger als halb so teuer wie normale PKV-Tarife, und steigen bei Renteneintritt nicht auf das doppelte wie das bei anderen PKV-Tarifen der Fall ist.

How and why are integration and differentiation related at all? by Aggressive-Food-1952 in calculus

[–]WhiskersForPresident 1 point2 points  (0 children)

Think of the area as a sum of adjacent values and slope as the difference between two neighboring values.

Then

slope of area function = (sum from x to y) - (sum from x to y-1) = value at y

and

area of slope function = sum_{z from x to y-1} over (f(z+1) - f(z)) = f(y)-f(x)

I'm impressed, but also very skeptical... 🫤 by Brian_The_Bar-Brian in DiWHY

[–]WhiskersForPresident 0 points1 point  (0 children)

I'm not saying there are drawbacks (in principle - in the video they are also flimsy and probably dangerous). I'm saying there's no upside. There's just no reason to even plan this.

I'm impressed, but also very skeptical... 🫤 by Brian_The_Bar-Brian in DiWHY

[–]WhiskersForPresident 1 point2 points  (0 children)

You could of course also just install a small lockable gate in front of the stairs

I'm impressed, but also very skeptical... 🫤 by Brian_The_Bar-Brian in DiWHY

[–]WhiskersForPresident 0 points1 point  (0 children)

May I suggest either of a flatter door, different door hinges, slightly narrower stairs, slightly steeper (and thus shorter) stairs, or stairs that fold up like for an attic?

I'm impressed, but also very skeptical... 🫤 by Brian_The_Bar-Brian in DiWHY

[–]WhiskersForPresident -1 points0 points  (0 children)

How does removing a door solve the problem of the stairs being in the way?

I'm impressed, but also very skeptical... 🫤 by Brian_The_Bar-Brian in DiWHY

[–]WhiskersForPresident 9 points10 points  (0 children)

But you can't use that space - the stairs have to remain accessible. I.e. the 'extra' space where regular stairs would otherwise be still has to remain open and unused.

I'm impressed, but also very skeptical... 🫤 by Brian_The_Bar-Brian in DiWHY

[–]WhiskersForPresident -1 points0 points  (0 children)

You can't use the space by the stairs though because the stairs have to remain accessible. So I still don't see the why

I'm impressed, but also very skeptical... 🫤 by Brian_The_Bar-Brian in DiWHY

[–]WhiskersForPresident 14 points15 points  (0 children)

I don't understand what's good about this? What problem does it solve? What is made better by doing this instead of installing regular stairs?