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

Assignment On Pandas - Assignment On Pandas - CN01 Courseware - Supervised Learning PDF

Uploaded by

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

Assignment On Pandas - Assignment On Pandas - CN01 Courseware - Supervised Learning PDF

Uploaded by

har.san
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

12/28/2019 Assignment on Pandas | Assignment on Pandas | CN01 Courseware | Supervised Learning

SupervisedLearning.com: CN01 End to End Data Science


Course - Batch 8

Course  Assignments Section  Assignment on Pandas  Assignment on Pandas

Assignment on Pandas
 Bookmark this page

1. Create a Datatime index containing all the weekdays days of year 2019 and assign a
random number to each of them in a dataframe. 

2. Given Pandas series , height = [23,42,55] and weight = [71,32,48] . Create a dataframe
with height and weight as column names. 

3. How to get the items of series A not present in series B .From ser1 remove items
present in ser2.

Questions on Titanic Dataset :-

4. Compute the minimum, 25th percentile, median, 75th, and maximum of age in titanic
dataset

5. How to get frequency counts of unique items of a series? Calculate the frequency
counts of ‘SibSp’ column in titanic Dataset

6. Keep only top 2 most frequent values as it is and replace everything else as ‘Other’ in
‘Embarked’ column of titanic dataset

7.  Bin the price column in titanic data set into 5 equal groups and get counts of each bin

8. Count the number of missing values in each column?

https://learn.supervisedlearning.com/courses/course-v1:SupervisedLearning.com+CN01+2019_12/courseware/3ed35c55f4f24406af38dbbae13878ed/… 1/3
12/28/2019 Assignment on Pandas | Assignment on Pandas | CN01 Courseware | Supervised Learning

9. Get the row number of the 5th largest value in the Age column of titanic dataset?

10. Normalize all columns in a dataframe?

11. Get the indices of items of ser2 in ser1 as a list.

12. How to convert a series of date-strings to a timeseries?

13. Get the day of month, week number, day of year and day of week from ser.

14. Compute the euclidean distance between series (points) p and q, without using a
packaged formula.

Desired Output

https://learn.supervisedlearning.com/courses/course-v1:SupervisedLearning.com+CN01+2019_12/courseware/3ed35c55f4f24406af38dbbae13878ed/… 2/3
12/28/2019 Assignment on Pandas | Assignment on Pandas | CN01 Courseware | Supervised Learning

15. How to create a TimeSeries starting ‘2000-01-01’ and 10 weekends (saturdays/sundays)

16. Import every 50th row of BostonHousing dataset as a dataframe.

© All Rights Reserved

https://learn.supervisedlearning.com/courses/course-v1:SupervisedLearning.com+CN01+2019_12/courseware/3ed35c55f4f24406af38dbbae13878ed/… 3/3

You might also like