Dab tsi yog piav qhia () hauv Python?
Dab tsi yog piav qhia () hauv Python?

Video: Dab tsi yog piav qhia () hauv Python?

Video: Dab tsi yog piav qhia () hauv Python?
Video: Data Science with Python! Joining Tables Without a Common Column 2024, Kaum ib hlis
Anonim

Python | Pandas Dataframe. Pandas piav () yog siv los saib qee cov ntsiab lus tseem ceeb xws li feem pua, txhais tau tias, std thiab lwm yam ntawm cov ntaub ntawv thav duab lossis cov lej ntawm cov lej. Thaum txoj kev no yog siv rau ib tug series ntawm txoj hlua, nws rov qab ib tug txawv tso zis uas yog qhia nyob rau hauv cov piv txwv hauv qab no.

Tsis tas li ntawd, pandas ua haujlwm hauv Python yog dab tsi?

Dab tsi txias txog Pandas yog tias nws siv cov ntaub ntawv (xws li CSV lossis TSV cov ntaub ntawv, lossis SQL database) thiab tsim ib qho Python khoom nrog kab thiab kab hu ua cov ntaub ntawv ncej uas zoo ib yam li cov lus hauv cov ntaub ntawv txheeb cais (xav Excel lossis SPSS piv txwv.

Tsis tas li ntawd, NaN txhais li cas hauv Python? nan txhais "tsis yog tus lej", tus nqi ntab uas koj tau txais yog tias koj ua ib qho kev suav uas nws tsis tuaj yeem qhia ua tus lej. Txhua qhov kev suav koj ua nrog NaN tseem yuav ua rau NaN . ua inf txhais tau tias tsis kawg. Qhov no yog vim tej kev ua haujlwm uas muaj NaN ua operand yuav rov qab los NaN.

Tsis tas li ntawd, DataFrame hauv Python yog dab tsi?

Pandas DataFrame yog ob-dimensional loj-mutable, muaj peev xwm heterogeneous tabular cov ntaub ntawv qauv nrog sau npe axes (kab thiab kab). A Cov ntaub ntawv ncej yog ob-seem cov ntaub ntawv qauv, piv txwv li, cov ntaub ntawv yog raws li nyob rau hauv ib tug tabular zam nyob rau hauv kab thiab kab.

Dab tsi yog pandas siv?

Pandas yog feem ntau siv rau kev kawm tshuab nyob rau hauv daim ntawv ntawm dataframes. Pandas tso cai importing cov ntaub ntawv ntawm ntau hom ntaub ntawv xws li csv, excel thiab lwm yam.

Pom zoo: