Advertisement
mfgnik

Untitled

Jan 27th, 2023 (edited)
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. 1. How to convert the first character of each element in a series to uppercase?
  2. 2. How to calculate the number of characters in each word in a series?
  3. 3. How to filter words that contain atleast 2 vowels from a series?
  4.  
  5. ser = pd.Series(['apple', 'orange', 'plan', 'python', 'money'])
  6.  
  7. 4. How to replace missing spaces in a string with the least frequent character?
  8.  
  9. my_str = 'dbc deb abed gade'
  10.  
  11. 5. How to count the number of missing values in each column?
  12. 6. How to replace missing values of multiple numeric columns with the mean? (Min and max price)
  13. 7. How to use apply function on existing columns with global variables as additional arguments?. n df, use apply method to replace the missing values in Min.Price with the column’s mean and those in Max.Price with the column’s median.
  14.  
  15. https://raw.githubusercontent.com/selva86/datasets/master/Cars93_miss.csv
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement