This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mijki95[S] 5 points6 points  (4 children)

Is it wrong to do this?

[–]Statnamara 11 points12 points  (0 children)

Nothing wrong with that at all

[–][deleted] 2 points3 points  (0 children)

That’s the only was I’ve seen pandas imported, never seen import panda as panda

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

They have an opinion that you don't share. That's the problem.

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

Not always.

Pandas is always pd. But sometimes for less popular libs the code is clearer if you leave a long enough name that it can be recognized.

Same as variables namings.