0% found this document useful (0 votes)
16 views3 pages

Batch 1 Set Question

Foundation of data science lab
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)
16 views3 pages

Batch 1 Set Question

Foundation of data science lab
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/ 3
a. Write a NumPy program to create a null vector of size 10 and update sixth value to 11 b. Write a NumPy program to convert an array to a floal type ©. Write a NumPy program to create a 3x3 matrix with values ranging from 2 to 10 4. Write a NumPy program to convert a list of numeric value into a one-dimensional NumPy array a. Write a NumPy program to convert an array to a float type b. Write a NumPy program to create an empty and a full array ©. Write a NumPy program to convert a list and tuple into arrays 4. Write a NumPy program to find the real and imaginary parts of an array of complex numbers Write a Pandas program to get the powers of an array values element-wise. Note: First array elements raised to powers from second array Sample data: {°X':[78,85,96,80,86), 'Y':[@4,94,89,83,86}/'Z'[86,97,96,72,83]} Expected Output: XYZ 078 84 86 18594 97 2.96 89 96. 3.80 83 72 4.86 86 83 tn man ec ‘attempts’: (1, 3, 2, 3, 2, 3, 1, 1,2, 1) ‘qualify’: [yes’, ‘no’, ‘yes’ =f a,"0.'¢,'6,'e.','g 0 "no "yes, ‘yes’, ‘no, no, yes'} labels 5. Write a Pandas program to count the number of rows and columns of a DataFrame. Sample Python dictionary data and list labels: exam_data = (Iiame'- [Anastasia ‘Dima’ Katherine! “James', Emily, ‘Michael’, ‘Matthew, Laura’ "Kevin, Jonas’ ‘score’: [12.5, 9, 16.5, np.nan, 9, 20, 14.5, np.nan, 8, 19), ‘attempts’ [1, 3, 2,3, 2,3, 1, 1,2, 1) “quality yes’, ‘no. ‘yee’, nd, "no’, yes’ yes’, ‘no, no’, yes|} labels a," '¢,% Expected Output Number of Rows: 10 Number of Columns: 4 6. Reading data from text fies, Excel and the web and exploring various commands for doing descriptive analytics on the Iris data set 7, Use the diabetes data set from Pima Indians Diabotes data set for performing the folowing ‘Apply Univariate analysis: + Frequency + Mean, + Median, + Mode, + Variance + Standard Deviation + Skewness and Kurtosis 8, Uso the diabetes data set om Pina Indians Disbeles dala set for performing the folowing ‘Apply Bivariate analysis « Linear and logistic regression modeling Use the diabetes data set from Pima Indians Diabetes data set for performing the following: Apply Bivariate analysis: + Multiple Regression analysis Apply and explore various plotting functions on UCI data set for performing the following: a) Normal values b) Density and contour plots c) Three-dimensional plotting

You might also like