Cov txheej txheem:

Yuav ua li cas koj khiav panda hauv Jupyter phau ntawv?
Yuav ua li cas koj khiav panda hauv Jupyter phau ntawv?

Video: Yuav ua li cas koj khiav panda hauv Jupyter phau ntawv?

Video: Yuav ua li cas koj khiav panda hauv Jupyter phau ntawv?
Video: Python! Writing pandas DataFrames to Multiple Tabs in a Spreadsheet 2024, Kaum ib hlis
Anonim

Txhawm rau pib siv koj qhov chaw tshiab, nyem qhov Environments tab. Nyem lub xub khawm ib sab ntawm lub Pandas ib puag ncig npe. Hauv cov npe uas tshwm, xaiv lub cuab yeej rau siv qhib Pandas : Terminal, Python, IPython , los yog Jupyter Phau Ntawv.

Yog li ntawd, koj siv pandas hauv Jupyter phau ntawv li cas?

Ntshuam pandas hauv a Jupyter Phau Ntawv Rov qhib koj li phau ntawv thiab tsim ib lub xovtooj tshiab rau saum. Nyob ntawd peb yuav ntshuam tus pandas qiv rau siv hauv peb tsab ntawv. Ntaus hauv qab no thiab ntaus lub khawm ua si dua. Yog tsis muaj dab tsi tshwm sim, qhov zoo.

Ib yam li ntawd, koj siv pandas hauv Python li cas? Thaum koj xav siv Pandas rau kev txheeb xyuas cov ntaub ntawv, koj feem ntau yuav siv nws hauv ib qho ntawm peb txoj kev sib txawv:

  1. Hloov cov Python cov npe, phau ntawv txhais lus lossis Numpy array rau Pandas cov ntaub ntawv.
  2. Qhib cov ntaub ntawv hauv zos siv Pandas, feem ntau yog CSV cov ntaub ntawv, tab sis kuj tseem tuaj yeem yog cov ntaub ntawv tsis txwv (xws li TSV), Excel, thiab lwm yam.

Tom qab ntawd, lo lus nug yog, Kuv yuav khiav Jupyter phau ntawv li cas?

Txhawm rau qhib Jupyter Notebook App:

  1. Nyem rau qhov tsom teeb, ntaus lub davhlau ya nyob twg los qhib lub qhov rais davhlau ya nyob twg.
  2. Nkag mus rau startup folder los ntawm ntaus cd /some_folder_name.
  3. Ntaus jupyter phau ntawv sau kom qhib Jupyter Notebook App Lub phau ntawv interface yuav tshwm sim hauv qhov browser tshiab lossis tab.

Puas yog pandas yooj yim kawm?

Python yog qhov yooj yim dua thiab ntau dua li MATLAB hauv qhov teeb meem no. Thaum koj tau paub NumPy, Pandas yog heev yooj yim mus nqa. Nws txuas ntxiv tag nrho NumPy cov ntsiab lus rau cov ntaub ntawv tabular qhov twg txhua kab tuaj yeem yog cov ntaub ntawv sib txawv (tsis zoo li ib qho array uas txhua lub ntsiab lus yuav tsum yog tib hom ntaub ntawv).

Pom zoo: