Assignment On Pandas - Assignment On Pandas - CN01 Courseware - Supervised Learning PDF
Assignment On Pandas - Assignment On Pandas - CN01 Courseware - Supervised Learning PDF
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.
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
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?
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
https://learn.supervisedlearning.com/courses/course-v1:SupervisedLearning.com+CN01+2019_12/courseware/3ed35c55f4f24406af38dbbae13878ed/… 3/3