What does it mean to abbreviate pandas as pd?

Asked 1 years ago, Updated 1 years ago, 297 views

It's the same except for Pandas, but what's the point of shortening it?
Is that the reason why it became troublesome to enter the official name every time I wrote the code?

python pandas

2022-12-04 23:37

1 Answers

import<module name>as<alias> allows you to import modules under any name, but it is often used (as you can imagine) mainly to omit long names.

The reason why the abbreviation "Pandas" is "pd" is because "Panel Data" comes from the name.

Pandas-Wikipedia(EN)

The name is derived from the term "paneldata"


2022-12-05 00:49

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.