Vous êtes sur la page 1sur 3
mL) outt2y n 23] outta}: Amport pandas as pd ofp. cena cav(“test.csv") df.head() dF.tail() sales _orcee ts ut vit fusion County tem Troe $M O94 oraeriy Yas YOK Yon Te Asa Twsronsion Faussiad Ome ~~ “TBTOS96 —GSIO GOBET BIEN SD usta to “SS siting’ est onme =. =2067918 808 a2n8m ene 2125 ccna 20 Euroce —Worsay «B32 contre L-_—icamont e80 25528 159.42 BOK8 21 euro poruea 88% nme Moacerastt 127328828 1eRA2 3200 cert zz M7TE® — ongurat_— snacks omne =< (705400692 «2225 15252 97.44 3308, cater ee ml iterate creme fone ccee iene ieesereaes) df.head() df.tail() ° 1 2 34 se 7 8 2 a Twine Hosea Ofte 1 asioTesy Seo GOTT Sips TERITET sta 20 “MSNEG EmstTiror Meni Onine L 222057916 5500. 42169 soto 2uos25-2 2 case 21 Ewope ——Nowway 88% onine Lstooazosr 7és0. 25828 0.42 10t83e 22 ewose —Foriga’—««BADF nine aeusrastt ars 25828 sea saaeriae cota 23 ATONE ontuas Shais Onine LTREABEGR? 2205 15258 9744 3384505 cartbean In [4] nl] In [5] out [5] Anmport pandas as pd ‘pd. read _csw("test.csv", header-None) ‘f.nead() a tail) headers ~ ["Ae","Con","iten" "channel","order", “ID","sclé", “price”,"Rev"] print(*headers\n", headers) headers ['re", ‘con", “item”, ‘channel’, “order”, "ID", “sold”, ‘price’, ‘Rev"] Amport pandas as pd df-pd.read_csv("test-csv", headen-None) df.-head() df.tail() headers = ["Re","Con","iten","chennel","order", “ID","sold", “price”, "Rev"] print(“headers\n", headers) df.describe() headers ['Re", "Con", “item, “channel”, order", "ID", “sold”, ‘price’, *Rey'] 0 4 ona 5 6 7k ° 4 cout 2428 Ok th 2 unig 6 BoB 3 8 Mom mm om 2 sw. = top Sanaran Honguras £4 mine 616607081 1779 25528 160.42 S76TES 7721062: ‘is : fea 8 2 4 27 114’ 1 In [45]: Inport pandas as pd import numpy as np pd. pane eav(“test csv") a head) afte print (df.replace("?", np.nan, inplace = True))] one in): ‘Syupyter Untitled aren PB cout Fis Edt View Iason Call ‘Komal Widgats Hop Ttucod] | Python3 © New Norbook + || [WAU mW |[coce 1S pon. Mate 2 Cony te pandas as oa Saves. te rumpy a6 9p Rename fenead_eou("test.cov") Save and Checkpoint fag) HI) Revertto Checkpoint » F(@F.replace("?", np.nan, inplace Print Prosiow Dounloasas + Trusted Notebook Save As Enter a notebook path relate to notebook air Desitop/LAB_2/

Vous aimerez peut-être aussi