0% found this document useful (0 votes)
60 views9 pages

DS Ise 1

Uploaded by

Phunsukh Wangdu
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)
60 views9 pages

DS Ise 1

Uploaded by

Phunsukh Wangdu
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/ 9
Total No. of } | t WALCHAND INSTITUTE OF TECHNOLOGY, SOLAPUR Information Technology, SEMESTER-II, 2021-22 In-Sem. Examination -I Blective-I: Data Science ( IT324A) Class: TY Maximum Marks: 30 Date: 21/04/2022 ‘Time: 60 min Anstruetions: Solve all the questions Qu [Sub Mark | C | Blooms e | Que s - |O | Learning No. |. Level [qr Objective Type Questions- 6 i) | The command to detect NaN (null) values in pandas 2 | Remembe dataframes is r a. isna( )b. isnull()c. isnan( ygBioth a and b 4 ii) | The command used for reading a text file in python is: = 2 | Understa ey a.read_csv Ub(read table nd * d. both aand b F ' iii) | Which of the package is used for visualization in Python? 2 | Understa nd a. ggplot2_b. matplotlib_c._seabormdAll of the above Iv) | Sum of mode and median of the data 1 | Understa 12, 15, 11, 13, 18, 11, 13, 12, 13 nd | |__|at6 b.31 36 . 25 YW) | Determinant of matrix Y rounded offto zero decimal place is 1 | Understa y |y= nd = 7 [10M ttempt any two - - = 5 Un 1) | Write python code for creating and generating array using 2 vy dersta built-in functions 1. Create an array with equally spaced number in the range | to 10 2. Generate array of shape 5 X 2 initialized to one 3. Generate an array with 15 samples with base 10.0 4. Convert one-dimensional array of size 9 to two- dimensional array of appropriate size 5. Find rowwise and columnwise sum of all array elements ii) | Consider Following dataset 2 | Understa nd model mpg__| cyl disp | hp drat Mazda RX4 wt 6 160 110} ek Mazda RX4 Wag 21 6! 160] 110} 3.9 Datsun 710 22.8 4 108 93 3.85 Hornet 4 [= vi Drive 214 Hornet Sportabout 18.7 | Valiant 18.1 Duster 360 |__ 14.3 Mere 240D _ 24.4 Mere 230 22.8 | Mere 280 19.2 Mere 280C 17.8 Mere 450SE 16.4 | Merc 450SL. 17.3 Mere 450SLC 15.2 8| 275.8| 180| 3.07 Cadillac 1 Fleetwood 10.4 8 472 205 2.93 Lincoln Continental 10.4 8 460 215 3 Chrysler Imperial 14.7 8| 440] 230] 3.23 Fiat 128 32.4 4|_ 78.7 66 | 4.08 Honda Civie | 30.4 4| 757 52| 4.93 Toyota Corolla 33.9 f4{ ma 65| 4.22 Find Frequency table for column model, two-way table for the columns medel and cyl with and without normalization null values. Consider above data table and wi output for the following 1. Find Number of records and attributes 2. Find Unique values for every attribute 3. Find histogram using any attribute(s). rite python code and its Dec 2002 [225792 | Mar2005_ | 37241.1 | Mar 2003 | 26759.5 June 2005 | 34789.2 June 2003 | 24583,3 Sept 2005 | 31567.8 Sept 2003 | 26105.9 Dec 2005 | 39977.4 Dec 2004 | 24777.6 Mar 2006 | 38899.0 Mar 2004 [33827.4 | June 2006 | 39300.6 L June 2004 | 32030,5 Sept 2006 | 40021.5 Sept 2004 | 34070.0_ Dec 2006 43902.6 Dec 2004 32400.5_ Mar 2007 51675.0 | Attempt any two - 14M i) - Calculate ‘Understa 1. product of matrix A and vector X me 2. product of Vector X and Vector Y 3. addition of Vector X and Vector Y Ne naa we 1 ae Ce ee 1 Pola X=(2,i,0) Y = (10,12,-34) ii) | Maruti Suzuki captured the Indian automobile market with ai Understa Maruti 800. The quarterly gross sales of Maruti Suzuki from nd Dec 2002 to Dec 25 007Is given below. Compute average, mean, median, 40% quantile Value,range Quarter [Salesin | Quarter __| Sales in ae million Rs. million Rs. Q3] 3) HU =18 s] A=) -20 -\s 4 -s -4& 1 (Q\_ = -24(-1s 416) 418 (-20+20) +5 (0-78) *_-2u 0) +8(0> + s(s) 5-24 +25 WY 1 c24 20-57] Met -8 As 4 | s 4 ¢ Vy 2 = So find cofactors of “Adj mabix- O_jers_-4) 2 -istee @ [8 -4[, ~1e 420 4 \ =) [-s 1 Qo @ fas sl 70018 Ss & 2& @| [-% | -s| ~-20400 HB lQy -s elk 425 4 \ = O° Stash f ret @ \-2, -20| . -9¢+100 S by a4 B| | =S) = go-75 @J-24 -s {246-50 -\S “4 =S “1g “ffs 6 wy ‘ { | | -24 = 20 | = 60 -366 [fa -isl =o Fnpe> above values the adj matin of @ te | Adecay = [1 2 47 | cae |i et ome | eo emmy ay p >, > 7 In i n Fe a o)~ Bl- 2 >, a s|- \2 IS ce =-|P Pa \ q ® Gers > J Ae tie3y a Ne{2z 3 s en ce es ad ys 3 Ro 2 Rain 2Rr_- Ra 7 Ry - BR Ry 7 Ry — 4 Ri i he ERD ST iS } Xt{-o-y iol oe a Lo “3 “J 1 LL oF a yzlo aN 2 o oO 0 oO 0) non zero matrix The vane of matrix #5 2 From the Gbove table O average of sales: + average -(22579.2+261S%S + 24S63-3 426105-9 4247776 33527-4 + 32030-S 494670 -0 1 32400-5 $324)-) 7 BTEY-L: + BISET-B 4 99977 FBS. £3904 + 4o021-5 + 439026 + 51(75.0) Y:3 it overage of Sales = A435 34 enitlion Re { @ mean . £ : mean = Sue of ail ngmbers + : Total no. 5 (228 74-2 +26454-S + 2458.3 $26 105.342 TITS FE BBBLTLG + 32ID~ 5 + BhOTAO $32400-S T372G IT BYIBIL FE BSCTR FIFA AEZG 0 $35 FOOL < Goo § FBV. FSVZTS- 9) ; 1 Venn = 44138:34 sion Re J media median - 2 +(fe) ee Mere ee median %2h60-S ABU A. xe S sable BSBVUTL + 240700 7 u ake Retin 282 33940 million S* Guar 40%, quantile Value a of —feecenbone (nt!) = \O0 7 ho \9) - 7 \op 16 2 Hin \o . ko 76 Lame 2. Guantile value sah th pasbisn ot quarter ep non m 7 0400.5 © Metading cinder) i.e Bld er6: milion “Rs B Range Fre table vos a adbghest value = SI67S-0- Lowest datgi 22S 79-L 2 Ranges =. SNGTS Or TESA E 2 19088-5__ aiifers ys coeSficient of vange = 516.15.0 - 12S T3-L" “s\G1S-0 A VUSTS-L & 095.8 \ FS US4eL (TD) 5 0-386 d ad import Aumpy as Ap G= Ape avray( |, 10, 2) print (a) 1 leport__numpy as ag A= Op array -ones (05,2)) print Ca) yl opatt dumpy as ap G=_p.logspace C1, 1s~, endporit~ Tue ,d hypesfali| - E import _numpy ac np. b os np. array ((1.2 3 GS 6° 7 § 91) 1 print la) i] G='Hip. arwoy weshape (13,39) > (hy 5 + priok_(2) : Way

You might also like