memesearch
When the Discount Range Goes Too Far

When the Discount Range Goes Too Far

Download Find similar pictures
Text on the meme
df_purch['range'] = df_purch['sale_size_purch'].apply(lambda x: '+ 95-99%' if x > 95 else ('+ 90-95%' if x > 90 else ('+ 85-90%' if x > 85 else ('+ 80-85%' if x > 80 else ('+ 75-80%' if x > 75 else ('+ 70-75%' if x > 70 else ('+ 65-70%' if x > 65 else ('+ 60-65%' if x > 60 else ('+ 55-60%' if x > 55 else ('+ 50-55%' if x > 50 else ('+ 45-50%' if x > 45 else ('+ 40-45%' if x > 40 else ('+ 35-40%' if x > 35 else ('+ 30-35%' if x > 30 else ('+ 25-30%' if x > 25 else ('+ 20-25%' if x > 20 else ('+ 15-20%' if x > 15 else ('+ 10-15%' if x > 10 else ('+ 5-10%' if x > 5 else ('+ 0-5%' if x > 0 else ('- 0-5%' if x > -5 else ('- 5-10%' if x > -10 else ('- 10-15%' if x > -15 else ('- 15-20%' if x > -20 else ('- 20-25%' if x > -25 else ('- 25-30%' if x > -30 else ('- 30-35%' if x > -35 else ('- 35-40%' if x > -40 else ('- 40-45%' if x > -45 else ('- 45-50%' if x > -50 else ('- 50-55%' if x > -55 else ('- 55-60%' if x > -60 else ('- 60-65%' if x > -65 else ('- 65-70%' if x > -70 else ('- 70-75%' if x > -75 else ('- 75%' if x <= -75 else 0)))))))))))))))))))))))))))))))))))))
What it means

A screenshot shows an extremely long nested Python lambda that categorizes a value into sale-size percentage ranges from positive 95–99% down to negative 75%. The joke is that a simple range calculation has been written as an absurd tower of nested conditional expressions, making the code comically unreadable and overcomplicated. EN: A screenshot shows an extremely long nested Python lambda that categorizes a value into sale-size percentage ranges from positive 95–99% down to negative 75%. The joke is that a simple range calculation has been written as an absurd tower of nested conditional expressions, making the code comically unreadable and overcomplicated.

Objects
Tags
Source
Type
image
Size
800×515 · 52.7 KiB
Mood
absurd, sarcastic
Language
en
Added