0% found this document useful (0 votes)
15 views20 pages

Information Technology CHP 1 Python

The document discusses the use of Python's Pandas library for data manipulation and visualization, covering topics such as creating DataFrames from various data structures, performing mathematical operations, and indexing. It also includes methods for accessing and modifying DataFrame elements, as well as attributes and functions relevant to data analysis. Additionally, the document provides examples and exercises related to the application of Pandas in data processing.
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)
15 views20 pages

Information Technology CHP 1 Python

The document discusses the use of Python's Pandas library for data manipulation and visualization, covering topics such as creating DataFrames from various data structures, performing mathematical operations, and indexing. It also includes methods for accessing and modifying DataFrame elements, as well as attributes and functions relevant to data analysis. Additionally, the document provides examples and exercises related to the application of Pandas in data processing.
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/ 20
[J [Gon ate Hencting Using Pandes ond Dole Visualization Python Pandas-! FASTRACK REVISION > creation of Sales rom Dictionary wT Taies by toeing ndees 26d 00s cucu: thea Pradesh saystran dpe sobs > pecssog Ela ep tor cessing sera of» series Thee 7 90 vere of aero inden santa to that for uP ments ne sere. ne sree ys pation inde and ale Indes estates on tee val tha cOespona> elon ine sis stating 0 0, wes! Tartans ary ser defied ube soe pea tectewnm- sien (28-22.209) op secioatan(s) Indexing ste ciple forthe poonal inde 2 sing sed wth NUMPY a0. reoftheseniesisto be iced by md end paroters start end) we vse postionalindces for minds positon is excied. =e detec tats 30 “ > iaatnemtical Operations 0 > maditon: We cn ve te > Subtractlon: We echod of series to perform subta > Divison: We ca fetes to perform dion bet > Multiplication: We can use the the 7 Operator o i) method of > Exponential Power: We con pow) method of sees put Fees ts exoonential power of calle series and retry the esis > atarreme ata structure: & Dataframe is 2 two dmersena beled data structure hea table of MYSQ rsandtherefore has beth aon Index ad Iecontaine rows and column tnd column index. The row indes Is know 0 I the columa idexis celled the cluma-name, > creation of OataFrame: There are # number of ways to create Dotaframe, Some of them are Usted inthis section. > creation of on empty DataFrame: An erty Datafrome ‘canbe created 35 Follows: ‘output: Empty DataFrame Columns: [] Indes (] > creation of OstaFrame from NumPy ndarroys ‘Consider the following three NumPy ndarays. Let vs teate a simple DataFrane without any column le's, sing a single ndatay all Information Practices | Class 12) 14 pork nuny as op + Operations on Rows and Columos in Dataframes evar! + np. ofney((21;28); nding » Hew Coluonn Loa Data rae: Wie ca easy (Bidar corn toa Bataan > nbding » wow Rov to + OBtaProme: We can 940» iy acorn wing the Ostaframelod{} method > Dotating Row ot Colurnns from a Dataframe ve ca pattthe Drtarame drop() method to delete rows and ‘columns from a Data output: > nenamiog Row Labels of « Datafarm We can change thetabels of rows and columns oa DataFrame using the Datatrame recame( eth | > Renaming Column Labels of # Dataframe: To alte : Tar tharen names of ResWsRDF, we can again Use the Creation of Datarrame from List of Ditlonares: we renamed metod ‘ancreate DataFrome from alist of Oxtionaces asi» Accessing DataFrames Element through indexing: Dt spb apMeGsckm ot{tateaiy, shri2d}, ements ina Detaframe canbe accessed using cooxng ferabe 1B 20, *67 2201) lemon co mays of dexing Oakaraines Label Based 29> areaneliat Dict = pd.oatare {ruexny and Boole Iden oe F Label Based tadening: There >>> akranaLteroict padasto inlement label based idexing, Oakarame Bihan important mathod that is sed for abel Dazed ee Snoring with Oatarames. 22 NN > Ream nda: nn 1% 209 aeepmaty of data based on the actun values Inthe ‘Detarrame from Oic ne rather than thelerocolum labels. Ths i fam Nona of Use nae ratio elon names ter can also be from a dictiontey of Values r e + Accuising pataFrames Element through siciag: We (2” ase = {9state’s (xanpur’, yee siing to seleca subset of rows andor colune oey SpHAApast), scacea's (90138, Ss Osarrame, Toretleve a set of rows sing canbe wed Ath ro abe > Attributes of bataframes mreibace name | fave severa! methods in aoe ee Faaraimisures dln ca eh ‘Duaprame dtypes [to dsplay datatype oF each columr inthe OataFrame to deplay 2 humPy ndarray having fl the saves in the DataFrome lo display 9 tuple vwpresenting tm [dimensionality ofthe DataFrame te display 2 tuple vepreservion the dimensionality ofthe OataFrame Ne transpose the Datarrame, Pow Incices and colue labels © the DataFrame replace each other fo eilay the fst » rows in to display the (st n ows in th ERS, etl acne attribute may be used. {Q5, Te get the number of elements in a series object, “7 ee Peers Se na ote “E values 4 nin Bindex Abdio itemsize roi gis, To get NumPy representation of a Dataframe, 196 To get the rumber of bytes of the series data, attribute may be used. nme abut i ily, see pepo exdtues mim ‘019, To get 2 number representing number of axes in a DataFrame,. attribute may be used. a.size shape values waitin (020, The name“Pandas"is derived from the term [tse 89° 2021 Ter el Series Na Pane Data ® Python Document Panel DataFrame {921 The command to install the Pandas is: [€85€ 50° 2021 Tere} ‘ans ip Pandas 9. install Pandas pip Pandas ALi instal Pendas (22, Python Pandas was developed by: [85 Sap 2021 rom 4) Guido van Rossum —_b. Travis Glinant jes McKinney Brendan Ech 923. Pandas Series is: [esse sop 2021 fem 3} 2 2Oimensional 3Dimensionst \eABirensional @ Multisensionat 924, Pandas is 3: ease sop 2021 Tern] 2, Package b Language etorary Software 925. We can analyse the data in Pandas with e88e59° 2021 rem) a Series bara Frame ‘xe otha onde, None ofthese ce aah Method or tncton td nen rw na Datareame Tensrsar 202) tort @ locl) 1b. lec © in o saat 27 Wich of te foloing import statement not corecth eatsgptea! om ‘a import Pandas as class12 ie fee : 3 port Pandas a ° import andr 2 impor Pandata te ecesing the colon tom the Datframe. we ceepecg the column ramen cave clon does Soren woich ype of ear wi rie: eases 2021 tr stoner @ Rinne ror rst cows inthe Oaaframe: “ces s0r2021 Tem) a key Err cannot be created using: OUSE SOP 2021 Term) Informaties Practices | Class 12 | 13 eries\Monumentinder=State) erseskstate Monument) Series{Monumentndex= State) Gl ecpdseries(MenurratindexState) 1286, Consider the following series narned bnimal: L en 8 Boat € tephant ir Tiger we Watt dpe: Object te the output of the command: prinn(anienall== 3) {fe080597 2021 erm) Lon bw Wolh Tiger 8 8ear type obiect ‘type obvet Bear a.wWwatt elephant Tiger ype: Object ype: obect 937. Wat sa correct syntax to return the wales of frat ‘candor DataFrame? Assuming the name of row of a he DataFrama is Rent. [6BSESQP2021 tera] a, oeni(0} be aentlo<(® ‘afer: .0<(0. 4 ofRenttod 1038. Difference between Loe) and ioe east sqp2021 Term} Both are Label indexed based functions {gern are integer poaton-based Functions toed) Label paved function and fac) integer position based funesion A lac) is integer position based fu index positon based function. ination and ie) 14 | MASTIRMMD CHAFTERWTISE ClvesTion nx (QA, Which command wil be wie to delete 3 and 31988 of the OataFrame? Assuming the DataFrame name oF (ase 2021 Term 3) OF aop(s}ane-) 0 OF opt 5) 41 wte the output ofthe giver command lenprt Pandas 5 pd pd Seves(.2.545 6indexfX,'9::'9,8:7 prints %2==0)) {e184 2021 tem} | the statement which wil ees the pert pardon o> be anes (herpeeet "avis", "on." 2 Bert, 076,055 Epame 86,70, 58,6) ‘adfapd Datatrame({Name’ Name Phy" Phy. “ther'ctom)) Py ce) fe lame Phy.Chem).columns= Py yc en ond wit Pasenaee 0 2021 Te pintmarts/2) (68505072821 I9, To 60 + fe fame’ Norkx crype Rost6* no 450 2 8 Fame Mors, drype Roots cos fee Mor type sto4 40450 28s ome Marks. ype Rost ead the statements given below. deny teri option om the following for Arrbute and mete ‘etion e Statement 4: Atribute almays ends withgg parenthesis ‘Statement 2:Fucton/Method cannot Werk withag [C884 5972021 Fon aus. a Tha sates ae corect Statement Vaincarect but Stthmen2 cones OSS 1 lof nese (048 Which the followings two-dimensional ela Bisa ‘te sewer often? ease * Reation 9 baacrame as £ series 1 Souare (049. Te spay the Sa A end 50 clans rom 2 (Ets ta th ros ob 2 DutaFame OF ou con mek rides 30) ame borecto.3 forte 36) ; SC ortedes 39 {18 Tecan Sih krvane donor 34 O58 rare oF oscar : i Aifesle3s Nor 3}o3 : Cemiasln35 — coriassi-35 ) (5. What wil be the output othe following code? Import pandas 259d Pt Series (10,0, 0)) as. {SE. Which ofthe fllowing comenand wil show the Last $ows om a Ponds Seves named NP? (cosesorze23241 awry) nisi) ce wP TAN) 4A iese 5. Wich ofthe folowing statement Ie wrong? (case 2821 et} cart change te nde of he Series |B We an eo convart het. tpl ar tary {e886 2021 Yer) 965. 966. Informatics Practices | lass 12 | 18 consider the following cose: Import pandas as Leper (30.201) sp Sets oe) priate) 0 1000 1000 ype i iat iste conect statement forthe above output Inthe follwing Statement 3? (CASE 2021 Tere] cus 4.0201" Which ofthe following would give the same output w Zoro where OF and DFL ae DatoFrames? 2 FMF bs Detai(DF) CDiwde(DFOF 4. DMOFOF) nicotene following statements wrong incontext or Daurrame? 1e38¢2021 Term 1) (2 Two dimensional cz is mutable By can perfor Arithmetic operations cn rows and colurs Homogeneous tabiar data structure 4 Create Dotaframe from pump ndrran Wich ateibute ls not used with DatFrame? feast 2021 Ter) ashe b.tyee empty 6 columns ‘wen we create 2 Dataframe from a ist of (Gettnaries te columns abel are formed by the ease 2021 Term] ‘Union ofthe vey ofthe dctionaies 1 lterecton of te Key ofthe cicionares {Union ofthe ves ofthe dtcnaries Identity the corset option to select first four rows ‘and setond to fourth columns from 2 Dataframe “Data: ease 2021 Term 3] a eptalOatatoc)§ 2:4) bb lspiay(Uatatott:5. 2:5) pent(Datasocd 4.141) 4 printatasoc( 4.2 4) ‘Which tribute is used with Series to count she total umber of NaN values? ease 2021 Tern 1} a ste tea count 4 court tort Consider the fotowing Series in eho ata = pdSeres[5,2,5,7) index s.b- 66D Which statement wil spay al od values? [oest 2021 Terma] A Prin(catati2—c) >. pri(ata(data2i-0N) Peat wind 21-0). orn(datl ata%2!=0)) race aot amie the fotos Da port paso ser en 58,54 34.99.12 250 rae cxapu 2s 2? rer nite a Peta) a Pret rae nt a ou te 6 Sn a fans wen te FNS a Prinses) a7. are being displayed To rectify ows are biog ale which of the Seatement® fetse 2021, Te] Femme tot 15 ta eng 0 acti ron) ao et erat nae Tene othe ue th dt Sen ends ros a statement ice Stateent 2 a 2: Sate fle, ut statement 2 ue > State a staterent2 oth are alse 4 tater and statement 2 oth are tue it of class XI" and he Is aware nny Concepts of Python. He fas created the oa but he is getting erors after executing patie Help him by identifying the coret RS pmant that wil create the DataFrame. code: Import pandas 5 pe stunarme-{"Muskan Radhika; Gopar, hu") term ~ (70,63, 74,90] ‘erm? =[6,70,86, 951 1 cfopDataFramel Name's! rmarks2* term2)) bs dt-pabataerame(stuner stuname, "marks. "marks2)) Abhay is 2 studen column’ € otepd Dtarrame({stunome ter torm2) G.ghsPOdatafrome (sturare, term erm) Mz Raman created DataFrame from a NumPy ray arr =nparay (2, 4, 81-(3.9.271 (4.16. 641) G-pdDataFramie (are index-[one, “two, ‘three’? ) print) Help him to adda customised column labels tothe above DataFrame. {east 2021 Ter} 2 columne=na cube) column(o sa; ube) columnss(n0! sq ube') 4 coluonnse[fno: Sq cube) ‘What will be the output ofthe following program? Import pandas a he-{Nams [Sapna Arnot Rist Somee ‘Aggregate’: (56, 67,75, 76],ge':[16, 18, 16, 19]) tp DataFrame (ic colurns-{Name: AGED pein (ef) (ease 262! teed Neto Ag Age B= Mane “ARE Age 101 Sopra 566 102 Anmol 67 18 03 Reh 7516 704 Sameep 7615, 0 Sipe 1 Anmot 2 Rhu 3. Sameep Sameep 18 {a7 Consider the folowing code Jimport pandas as pd Stop. Series (25, 24,35, 56) Inder.) Ve ee ne tre has praviged some daa. On which he Be t to do some operations, but he is facing son, ‘he statement, problem, help hit: em Code: ress import pandas a Pe ‘ootbatl 7 ResuliSheet cicket 8 “Naveen: pa-Series ((90, 91.97], hohe & index ‘Science’, “Hindi'), bbs ‘Rehan’ + pa. Series ((92, 81, 96), ae indexe{*Maths', ‘Science’, "Hindt’), eb “John’ ; pea.Series ({89, 91. 88), foottal? w i erika indexe{’Maths’, “Science’, “Hindi, sRoja’s pl. Series (81,7 fea arten state. ‘dex = [°Maths’, “Scien Manat: pd Series (94, inde DF=pul DaraFrame(ResuliSheed) prin(DF) ‘Output of the above code Bearer [ratann [sete | Roh [ Moat or iT ae tn ow ci eae Stone rem i above OrtaFame, chore ema eens) Metered ¢ DEL Prem}=(69.7876.67) ey eens halle =e eee x ia arty TS ee 1 Deepen owenm) es" fe, eh ae Sreet ‘Ainimpasemutnoonen, eee eee & crores ‘beim Strom (5. What wl be the output ofthe given command? Dende 8; C1. 4 Error, index already exists and cannot be overt Answers ——_—__——— Wi 20 20 4m 5O 6 ‘Kaur maintains the ecords of all Of her clas. She wants to perform some pon the daa a. 1.102.103.104,105, 106.1071, dy Aurobindo") 16.15.16). 80.3, 865, 67.7, 85.0] SUB, ‘NIC, “E114 “Gade Tie nie Tie aia Tie, Case Study 7 Informatics Practices | Class 12| 21 trovld ely her to get the correct answer? i960 70:Maces) bs prnelaflocl50:60°Marks)) peiofitac(-2-2.0Marks a. pentatf2-2) (Mors ich ofthe following statements) wilt add 2 ne ‘lun fee at second position with vatues (3200, $$400,4500,3400,5200,4000,5700} in OataFrame on 1» dlncertloc-2column=fesalue= (3200.40. ‘9500 31003200 40003700) by dtaad(2colurmn=Tee, (3200240045003100 3290 40003700) Gtappendlocea,fee> (3200340045003100 320040003700) :otinsert(oc=2 fe’ (92003400.8800310032 ‘904000.3700)) 124. which ofthe following cor the column Grade'in the DataFrame oF? a dforoptGrade.axs=Linpiace=True) » terop(Grade:2ce-Ounplace=TTue) dtcrop(radeosis=linplace=Th*) oh afdelete Grace’ans-Linploce-TTe) {oliowing commands would rename rrenandsisusedto delete 15, Whien ofthe he column Marks’ to Halfeary'in the DataFrarme an place=Trve) ‘a dfrename{arke! Hotiyerty) 1 frenamelfMarks: Halfyeery/)neia frenare(colunins={Marks:HoifvesriV} Inplace=Trve) ‘drenael( Marks Hallyeetynptace™Tre) @ Answers —————— 10 20 2 4&6 50 Sanyukia is the event incharge in scb0O! ff her students gave ler a suggestion co use Python Pands an Maiplosiy for anslysing and ualisng the data eespectively. She has created 44 DataFrame *SporsDay" wo keep oock of the umber of Firs, Secoud and Third prizes won by ferent Houses i various ever, Howse | Fist [ Sec | Gienab Ganges 24 | Masraso cHAInwsE Coens 08 vn towing Seri be: ty votwatinn eit 2 hor err 20031) amt) 0 150 ersesar202524) 12,15, 20 ne om rss Sy Tay ore em, pec | a mgt oe ens oasoz7s { asie 3 -apeseas 5 onsexss “ type ate ng ate Arr be rete y oiote aterngy 3100 o Sethe Stee Say tated above jee) $700 0 | dry ost wso 41, wat tbe the ouput prosiced by fon {Die oder he Serer ole en son © pinwsita9———) prisfop (4 pane (s0:29 4) S02]=12 es) Ans) sere rye nt) pen 20 aap isa i pon 2 rexeooto > tine ine pence 2 tebooko @ sale a coer o dpe ie ‘014. Consider the following Python code import pandas as ps uegaseres © (CRubing, aya, vsona Imex 20,16, 18), Stop (onsets 26 209 Siopd Sates (56,61 80h) sian sabe 53, Maks 53) or pe baer 7 pene Ganplete the above Prion cade to pay the ‘stow eu etse2000) ow. me Ben Pphancaecan be writen 3: Inport Pans 368 _SPepdeenes (usr, Yay vsahav} index 10 518) “Seed series (FHS) nde 10.5. 18)) et saris (565 6766). [0.16.18 eS] Sher -52 Nake 53) git) Tener sg9 20226) etormatic Practices |ass12| 28 vce eum blow as etc Te Pin ie nr eae suri me ‘Sreors mise impor pas 3 SS eee Re omen oe pasate (8) rine ‘aoe Png Cororarenne obo Soe me mone 3)) fo pupsarome patie z sem non, ote wan blow as etait Crogramming Robots. [roves evse say 2025241 ‘018. Tirors Rewrite the correet code and un tine the Sesion) mace mort ans 78 : te amy Cae :31,Howe R08) oe resezo0) tnpor Panos oF 24 - eee tpame Ryo Clare House Re) Sep evestsud) tes program to crest a Series obec ftom 20 Masry at stores characters from 30°: Iga rump 2 ars nperotetabcst) pron) Srapaserestor) {120 How does Datarame object specify indexes tots ata rows? os. hatindenes or ot spoced withthe DataFrame thesthese are genase fromthe mput data nan intve fasion For exarle, from the Keys of “ana ne cose of oun abel) or by wing pranges) the case of row label). where {erresponds toe number of rows aw. ys ERP short Answer ype Qvestons \2 81 at isaSeres and how i it iferent from a 1-0 raya list anda ditionary? Set ans. Series: & Seis is a one-dimensional afray having 2 sequence of values of any data pe Girt. lat st sting et). By default, seies have cumerc data Inbes starting for zero Seles Ws 0 array Series can have default as well 35 predefined index (abel w Tas only ceaut inoses Series can contain ei tasty tren wren concen ements ofthe same datatyoe cee | sen aan nino 2 8 ren 26 | Masrense cuarronwnst Ove ae eee fe = yeconteel erring me a ts oa es = cpio CS a - gro eee aaaathuerer win, fiers $7000) (Pet a 03} fre dtp DataFrame (a frame | reared Sal 940000) (Depa a Sect, | Eatahame Moser 92520222620292928) geet |e arscoa nem a Bete eae, Sanewtrg Drnsze of eres” san) .@: $$ $$. Pelee. parva aecd Gea cawat \ RE Rabin a data analyst has stored the voter's name land ge ina dicionary Now Kable warts to Gems 2 lst of dictionaries to store data of ml voters. He also wants to create a Dataframe fon the some Ust of dionaris having appropri ‘ow labels 38 shown below: Voter Mame Voter Age 9 ‘e101 dian 35 ‘823002 ala Ps 04002 Govind as Dneo07 Dara 1» 600s Nava 8 Help Kabiin writing a Python program to complet the tase fevsea0a Sawa wor Age (8 13.25% 18 sp herinwrng stable Ponce to complete ‘hese (esst203) a _ aeons See eee = 0 Rttong data: 300, 290,450, 760) See cee Sc ac) =f Tae 7 900) (i Genres a= Bi {i orre=enrerename ( (C28 ae) eresGererensme _((cadeBook Cod Sicroumne) aie the given Onofre asso’ Teas [oof 88 a a = 2 [sebat —Topon [2s of dese 3 [estat —|opore—_[nah 4 Irmenkey [imal [72 " Slower 25 fates aa teases) ‘WitesuitablePython statements forthe following: (0 Toad anew row wth fllowing values: Codename ‘sbe125 (ategory=alphanumeric Frequency—12.8 i) Te deete the row withthe row label 2, i) Te delete the column having column label as Frequency. leasere24) ‘Ams (passwort toc (7) = { abe123, alphanumeric, m8) ( password ite program tht stress of 5 ft ing mea sare for each onthe ‘Poel te ct ry sl ‘he powom shod opey te trary ste “Ty Se, tin Ont ety (hornets manimar te Ys?™ ‘etna se rindi me ‘isin salar of fm 1 mace: orth In wich tat er so he mat ‘esoum sates‘ em ? mace: month in coat ter sod the mata ‘mm mc of hen 3 mae: «mon Stsimuon ner of tom 5 made: 3) Mey * 9. “three records. re pay records of {iy We Pyeon statement Yard row able. ea) {@ption or Par ony) (a) Wie suitable Python statement to etsove the tat stored nthe registration <3 ito ie Duatrne ae were) ie ma. (the Sn ie hen pon Serer Teme “tT Toes fo | rene resect or Cpr, tr ora eter ho 2) ser pogan aPten Pato cone he os alll fae ‘BNO ‘Name | Seon ‘score’ | Sunnie 30 [eo en 30 | Masten OUPTRWIS! Caron ume | Rake [we ee ate atest (eprint) paves oe ee ne Nene Puarenrw Sho (9 ace ot te nr Dyan Gotha’ arenes orn Seretnss7080), ee {eastSorse “Serez(00859576)) ures septate ‘ee () Te uct fhe Pedr states ae as Ser = tscorers Scr 9 — are [out [ee | ato) sece) oscre2) Foet [350 [oO (a= ceo 2) rope) (0 oat) Cnr) + COUZ} +e FOE. (ore @ Chapter Test —— \ section and neason Type Questions Directions (@ Nos. 68: nthe questo given ep there ee io sotaments marie exactions ‘Reason Red the sates ond choose whe oe rn and son ae oe « Beso fs theconacomparsiony earner ‘Bah Asericn (and Besson et Resin Pbrxconec opiratin tase ee & Assrion (ist ut Rewson fic oc ern ace Assertion a) 4 Pandan om thought of as 2 cot ee, umn or arom, essentially, Beason ): Both series and DataFrane » data structure | ‘Assertion (A: While series ig 2 one-dimension. ita structure object, DataFrame iss dimensional data structure object ™ Reason (RA series objets value mutable Intermatcs Pracions (Cis 121 31 ‘ot NmPy ad ee SN efit seme, gh Fn ZO cue Sty Based Questions FRY Sits ces cae de wean et ewe Pada NtimatNan teva: Seman coane sar om Maye cu, Chemtura escantonnce” gg ee ed dee sc mumeral ray data Te ‘Sars and defines de relationship between the data seep that can be: ered on Ge eres ea cee ae ‘ Wen mang he a a ‘Sis 1D, DaaFrame 20 an Pane! 30, CY] Cee nintgeentgese — Sein trans aed 30 Fi a mee TE Pri(DatarometMarksimax()(Dutafromet, We ea: ae yee tern Te scry na _ Patras) «9 We» progam i Pytiont cece a ees of Very short Answer Type Questions {what the ference betwen at and with ‘pect oaDaarone? G12 Nowwould yo dee clus rom 2 Osta? {13 How wold yu dite rows om Datarone? {14 wh ncton wed you te to rename te men/ ‘Sta ames ina Datrome? Short Answer Type-I Questions {15 What 2 Ontarame and how is erent rm a 2Danay? 14, Wee «progam to crete» DataFrame fom 2 2.0 Ue Spey ow teres ‘Short Answer Type-l Questions {Gren itaframe mas shown below: alee thepsts Find ot the eon allowing statements () tron Teta Orer’h. ax =) 0) matdap(C4-0°p (i) mero ¥-D" a= 2) 918. Consider the following series object. ° * Pris a9 Chemisty 92 %3 ‘32 | Masrinso CHAPTERS Channon Ai (bP ct etme Pion tanto cee mats tat ‘ees 0. gue ts ‘a warpath mab of (Gre an eat of onan sees om NamPy an Wn propery f Series ep to ack eter {Seren emptyornoe? Bolan wid exon Gi Fain tana ie given ese: Impet parda 2 sos (1.2.5.450 a oweetpoon rt 26 aon 110 asaia®) : ae aoe end: ‘sh=pdSeries(34, 28, 32,5034} !ndex- Ti, es te the output of he following cose Import pandas as She poseries(3, 29, 31,5031} Inder “Fete mar mors May) pring Moy

You might also like