this post was submitted on 13 Jun 2023
34 points (97.2% liked)

Programmer Humor

32453 readers
762 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 4 comments
sorted by: hot top controversial new old
[–] Kerb@discuss.tchncs.de 4 points 1 year ago (1 children)

Import pandas as np
Import numpy as tf
Import matplotlib.pyplotlib as pd
Import tensorflow as plt

Or if your more of a c++ guy:

#define true false
#define false true

[–] Backstab100@lemmy.fmhy.ml 1 points 1 year ago

OMG, imagine the chaos!

[–] numberedcompany@sh.itjust.works 0 points 1 year ago (1 children)

Not a programmer, y funny?

[–] illectrility@lemmy.world 1 points 1 year ago

When doing "import x as y", x is the library (set of tools you can use in your program) you import and y is what you would call it throughout your code. This is helpful to shorten things, for example "import numpy as np". Now you can just write "np" instead of "numpy".

In the image you would start every numpy statement with "pandas" and every pandas statement with "numpy". It just makes it confusing.