0% found this document useful (0 votes)
20 views15 pages

Ip Notes 12

IP notes for class 12

Uploaded by

Gamer Alpha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
20 views15 pages

Ip Notes 12

IP notes for class 12

Uploaded by

Gamer Alpha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 15
toe python. pandas... pandas: iis 0 open. sounge Hbrony | 4b analyse -the dela o | pandas coord 16 denyved Exon. as vead and unite dais in dipkeroe -clect gubsel of date sing data operotions.. 4c an apply d tur It 16 o.woy of slong and raatagiige i? 3073. os memati Types Series ond. Deishrome. + etme Array > tbs collection. of emegenous Hems whids stored ina .continuews _ menher inthe tompaiees memeny.. os eet Syntax. Array obsect x Cvokse 1, salve 4 iil es Ex Se, ch $2.,53.$8).. ‘ are [print Co.si2e) O)p = 6 ——— - eck Lo. emphj) ——olp= False ie t Cchecks 1f sextes ts empty oe a ae punt (a. dtypes) olp-—Flea =e print Ca. ndim) clp- print Ca shape) olp. | print Ca.hosnans> CReturns 4rue if Serres have roissi 15 wrce versa) \ 6) Crow. ing values ov it 16 a subset or part of main data slice end +1: Step valued) Syntax 1 print Ca Cst example immport_pandos ad o=p-Seres [at printa C14 212 Sort values: arrange data in e/ther orcendingng descending order example = print (a. sort values (ascending = print_(a. sort - values Caacending y Ib rngons_descen x | Sort index (9: Th allwsVian dp all etther_in_ascending ex descending _ ficte: by detault it sork he. order ‘ i Syntax 0 Surt— index Caxend @ Sut — index cogea sere fionary of To_acee ~ x | Accesing- single caluma db Ceoluma nome) dé Column Name. | syntax: | Aessing a multiple columa | de CC ‘eall’. ‘add'I) _-£ | Acces a susbset of dé Or accend rows — 2 | Syntax doc (start index + end index , 5: detor(o+2, ‘Row! : add") wow) dP. loc Crow index} Igc C) > To accers subset of datafrome 2Tb_accen) 99 sition = (6.1.21 — nt (a (total) =a Cimaths Tod ae Sa_= pd. data Pre 3 a & And. Uindusve on C+. Q q _|¢> print Com 3 ‘ D> print (O.6um 3) _print Con : Stanstics agqreg a: _|s>paint_Ca A. mean = )_CAverag} = 2) | mode _=max 2) Count) 331_medsan = mi | 9) 99 See a 9 eo, Frame cahat.i8.-Dalalr® mensional awna ad el ‘t i by colunans 0%. "MoU ie neous its value 1S mutable. & Dalaframe X_| difference 1D- Series | Dataframe_. Senes | eels | create ernpty series tb Sees 16 4 dimensional _| dataFrame_1¢ array | array | import pandan 3 2 Se 6,30) 2 a) Tt has Homogeneous {-walue \b 15 _vepresenber both axa, and _oxts=4 Dname_—-prite —Caloy ws t sr_|_p'om 5 a 44. 6 b d Timport_panday ops a= (5,6) bee fol cth*) A Frome (Cab), columns = Fey 3 eo index = [11.12.7) oF list a= [[s,‘a") b')) b= pd-Dataframe (q columns =[$r+ index 2 Coy, | 22+-1npard pandas as_pd $2 impoy} AUMPY as ap G=np otClS.17., Ce a3) 3 b= pa Datatrame Cg ql or Rou) ‘columy, x | Single cell at. C) ak: Croulabel, Coluran. tab 1k C)_ =d.terk.C mous tnaler cod_inder no). | modiFy...fadld collie | ap £calurnn. narne J > new Vc |_de C {R02 Se | AP _C ‘52 a Cagis dé. C'S" Je fao9/. tana t CdF.toc C © OWS and | > Rows disp ly * | snodtky. Ladd ro 2 id all columns }-A 102 ae 4 |___d ade rt column Len de 2) q.0-dofafame 5 1 views o.daloframe ing i subset means rend a y ww Wise Syntax Heratin| jh Henmws Form.oF porizont From_dotaPrame br Syntax dotafromé none Interou5SC >. giteritems () : Tt views a dak ae ake Subset means Sa Raa, cag by Columrinise fexm ok Vex! Kom gatakeame

You might also like