Re: Re: Untitled

From Jittery Shama, 4 Months ago, written in Plain Text, viewed 85 times. This paste is a reply to Re: Untitled from Sludgy Lechwe - view diff
URL http://codebin.org/view/f4c81d8b Embed
Download Paste or View Raw
  1. Пример 1.
  2. def get_minutes_and_seconds(time_string):
  3.     time_list = time_string.split(':')
  4.     m = int(time_list[0])
  5.     s = int(time_list[1])
  6.     return m, s
  7.  
  8.  
  9. def check_song_duration(time_string):
  10.     minutes, seconds = get_minutes_and_seconds(time_string)
  11.     seconds = minutes * 60 + seconds
  12.     return seconds < 210 #напишите ваш код здесь
  13.  
  14.  
  15. print(check_song_duration('4:35'))
  16. print(check_song_duration('2:10'))
  17.  
  18. ________________________________________________________
  19.  
  20.  
  21. Пример 2.
  22. def default_drop(column):
  23.     global data
  24.     data = data[data[column]<data[column].quantile(0.995)]
  25. list_of_columns = ['price','area','height','weight','glass']
  26. for columns in list_of_columns:    
  27.     default_drop(columns)
  28. print(len(data))
  29. data = data.reset_index()
  30. print(data.info())

Reply to "Re: Re: Untitled"

Here you can reply to the paste above